SecureApiGateway / SecureApiGateway

Top level project - includes wiki, github-pages and issues
https://github.com/SecureApiGateway/SecureApiGateway/wiki
Apache License 2.0
1 stars 1 forks source link

IG test: CaffeineCacheTest.shouldEvictEntriesBasedOnTime fails occasionally when run from GitHub action #576

Closed dbadham-fr closed 1 year ago

dbadham-fr commented 1 year ago

See: https://github.com/SecureBankingAccessToolkit/securebanking-openbanking-uk-gateway/actions/runs/3236322390/jobs/5301972196

Error:  Failures: 
Error:    CaffeineCacheTest.shouldEvictEntriesBasedOnTime:77 expected: <100> but was: <76>
dbadham-fr commented 1 year ago

The test is time based, it adds some items to the cache and checks that the cache contains the expected number of items, then it waits and checks the cache is empty.

The issue seems to be that the test is run with few resources so some items are being evicted before we finish adding all of the items as it is taking longer than expected.