Page MenuHomeSoftware Heritage

client: tests: add longer delay for server startup
ClosedPublic

Authored by haltode on Aug 19 2019, 4:03 PM.

Details

Summary

Unit tests were *sometimes* failing depending on the server startup
time.

Diff Detail

Repository
rDGRPH Compressed graph representation
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

swh/graph/tests/test_api_client.py
36–44

Doing this stuff by hand makes me sad, kinda.
We already depend on retrying elsewhere in swh, which makes doing this kind of stuff much nicer/readable. Don't you want to use that instead? (If you insist enough, I can approve this as is, but please give it a thought :-))

This revision is now accepted and ready to land.Aug 20 2019, 12:30 PM
This revision was automatically updated to reflect the committed changes.