Closed mgorny closed 7 months ago
The test_client and TestLoging errors make sense. Those don't currently have cassettes because I still need to fix some stuff in regard to those tests. The rest are odd, I will test them again with this exact parameter.
The issue was that very long ago I set the tests to have some randomizing elements to the way the tests are ran to allow for an overall larger coverage without increasing the time of individual runs. This was causing the failures. I've removed that bit of code in the next release. All tests that do not require a logged in user should now be able to run without a connection using only the cassettes.
When running the test suite in an offline environment, I'm still getting 38 failures an 47 errors from the baseline set. Some fail outright, while others hang.
strace(1)
suggests that they are stuck in asleep()
with very long interval — my educated guess is that pyrate-limiter is wrongly assuming that the failures are due to rate limit, and are repeatedly retrying with ever growing delays. I've usedpytest-timeout
to force them to timeout.To reproduce:
Summary:
Test log (1.1M): log.txt