Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Henrich <marcos.henrich@xamarin.com>2014-12-15 14:19:34 +0300
committerMarcos Henrich <marcos.henrich@xamarin.com>2015-01-09 18:36:57 +0300
commit70d30f9de19632e87ad9deddef91bff316767cf7 (patch)
tree73075f4a2c5dd9cd27edd4fe76f0a0d4949e4250 /mcs/class/System.Runtime.Caching
parent861b3351816916a38a2d1ca9569cf499d32e9c53 (diff)
[System.Runtime.Caching] Updated MemoryCacheTest.TestCacheSliding.
Changed sliding expiration timeout from 1 second to 2 seconds.
Diffstat (limited to 'mcs/class/System.Runtime.Caching')
-rw-r--r--mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs b/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
index 77b684c970d..9f58d49f057 100644
--- a/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
+++ b/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs
@@ -1377,7 +1377,10 @@ namespace MonoTests.System.Runtime.Caching
Assert.AreEqual (0, mc.GetCount (), "#CSL1");
var cip = new CacheItemPolicy();
- cip.SlidingExpiration = new TimeSpan (0, 0, 1);
+ // The sliding expiration timeout has to be greater than 1 second because
+ // .NET implementation ignores timeouts updates smaller than
+ // CacheExpires.MIN_UPDATE_DELTA which is equal to 1.
+ cip.SlidingExpiration = new TimeSpan (0, 0, 2);
mc.Add("slidingtest", "42", cip);
mc.Add("expire1", "1", cip);