NHibernate-Caches
NHibernate-Caches copied to clipboard
Cache expiration tests are flacky
I suspect that one second gap might be not enough.
So far these are the tests that often fail:
NHibernate.Caches.Common.Tests.CacheFixture.TestDistributedClearNHibernate.Caches.Common.Tests.CacheFixture.TestObjectExpirationAfterUpdateNHibernate.Caches.Common.Tests.CacheFixture.TestSlidingExpirationNHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestLockUnlockManyAsyncNHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestObjectExpiration("cache.default_expiration")NHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestDistributedClearNHibernate.Caches.StackExchangeRedis.Tests.DistributedLocalCacheStrategyFixture.TestObjectExpiration("expiration")
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.