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 f4879901001 IGNITE-27861 .NET: Fix TestSlidingExpiration flakiness
(#7665)
f4879901001 is described below
commit f48799010011cde242cec59dbd7e7af6fc55739a
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Thu Feb 26 11:50:16 2026 +0200
IGNITE-27861 .NET: Fix TestSlidingExpiration flakiness (#7665)
---
.../IgniteDistributedCacheTests.cs | 6 +++---
1 file changed, 3 insertions(+), 3 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 72eef79aace..d91682fc889 100644
---
a/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
+++
b/modules/platforms/dotnet/Apache.Extensions.Caching.Ignite.Tests/IgniteDistributedCacheTests.cs
@@ -276,21 +276,21 @@ public class IgniteDistributedCacheTests(string
keyPrefix) : IgniteTestsBase
var entryOptions = new DistributedCacheEntryOptions
{
- SlidingExpiration = TimeSpan.FromSeconds(0.5)
+ SlidingExpiration = TimeSpan.FromSeconds(1)
};
await cache.SetAsync("x", [1], entryOptions);
Assert.IsNotNull(await cache.GetAsync("x"));
// Access before expiration to reset the timer.
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 15; 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));
+ await Task.Delay(TimeSpan.FromSeconds(1.5));
Assert.IsNull(await cache.GetAsync("x"));
}