Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache expiration tests are flacky #148

Open
hazzik opened this issue Apr 10, 2024 · 1 comment
Open

Cache expiration tests are flacky #148

hazzik opened this issue Apr 10, 2024 · 1 comment

Comments

@hazzik
Copy link
Member

hazzik commented Apr 10, 2024

I suspect that one second gap might be not enough.

So far these are the tests that often fail:

  • NHibernate.Caches.Common.Tests.CacheFixture.TestDistributedClear
  • NHibernate.Caches.Common.Tests.CacheFixture.TestObjectExpirationAfterUpdate
  • NHibernate.Caches.Common.Tests.CacheFixture.TestSlidingExpiration
  • NHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestLockUnlockManyAsync
  • NHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestObjectExpiration("cache.default_expiration")
  • NHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestDistributedClear
  • NHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestObjectExpiration("expiration")
@fredericDelaporte
Copy link
Member

One second gap is still already a lot, especially for tests running entirely locally, without actual network access involved.

I guess we could still try increasing it and run the test many time from the branch to see if it solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants