Closed jcoyne closed 2 months ago
@jcoyne yes, it might be that these S3 tests can't act on Cache being written or now, so it waits 1/2 of the upload time only. If the backend is slow it might not be enough. Wonder if we could use Mockito
in the future (no backed - just mocking the classes) (but requires probably a lot of rewriting) or this helper library to help with actually waiting?
https://github.com/awaitility/awaitility
For Mockito: e.g https://github.com/aws/aws-sdk-java-v2/issues/3368 (the example test there is almost good, see comment of AWS folks down there)
Glen to have a look to see if testPurge is using the async.
This test seems to fail randomly on CI: