This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 9871c351d23 IGNITE-27796 .NET: Fix TestSlidingExpiration flakiness
(#7567)
9871c351d23 is described below
commit 9871c351d23c91025a878349118162944f5ea067
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Tue Feb 10 18:39:56 2026 +0200
IGNITE-27796 .NET: Fix TestSlidingExpiration flakiness (#7567)
---
.../IgniteDistributedCacheTests.cs | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git
a/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
b/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
index aac6c36e787..72eef79aace 100644
---
a/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
+++
b/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
@@ -283,12 +283,11 @@ public class IgniteDistributedCacheTests(string
keyPrefix) : IgniteTestsBase
Assert.IsNotNull(await cache.GetAsync("x"));
// Access before expiration to reset the timer.
- await Task.Delay(TimeSpan.FromSeconds(0.3));
- Assert.IsNotNull(await cache.GetAsync("x"));
-
- // Wait less than the sliding window - should still be available.
- await Task.Delay(TimeSpan.FromSeconds(0.3));
- Assert.IsNotNull(await cache.GetAsync("x"));
+ for (int i = 0; i < 7; i++)
+ {
+ await Task.Delay(TimeSpan.FromSeconds(0.1));
+ Assert.IsNotNull(await cache.GetAsync("x"));
+ }
// Wait for expiration without accessing.
await Task.Delay(TimeSpan.FromSeconds(0.7));