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:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2016-02-06 23:25:17 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2016-02-08 19:05:07 +0300
commita4f6ac07008f8416c198be0bc57b3437ea5ebed0 (patch)
treeba59863da57c9c8304ea68f2e6b0cdaf9e5d88dc /mcs/class/System.Runtime.Caching
parentdc085eacecf80e091967f8ab25ea5270ad9a8480 (diff)
[System.Runtime.Caching] Make TestExpiredGetValues test more reliable
It failed twice on Jenkins over the weekend: ``` Test Case Failures: 1) MonoTests.System.Runtime.Caching.MemoryCacheTest.TestExpiredGetValues : #EGV4 Expected: 0 But was: 9 at MonoTests.System.Runtime.Caching.MemoryCacheTest.TestExpiredGetValues () [0x0012b] in /media/ssd/jenkins/workspace/test-mono-mainline/label/debian-armel/mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs:1304 ``` We're sleeping just as long as the expiry time of the cache items (1s) which might not be enough. Bumping the sleep time should fix this.
Diffstat (limited to 'mcs/class/System.Runtime.Caching')
-rw-r--r--mcs/class/System.Runtime.Caching/Test/System.Runtime.Caching/MemoryCacheTest.cs4
1 files changed, 2 insertions, 2 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 dada449fb86..7e0c8dc47c5 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
@@ -1,4 +1,4 @@
-//
+//
// MemoryCacheTest.cs
//
// Authors:
@@ -1293,7 +1293,7 @@ namespace MonoTests.System.Runtime.Caching
Assert.AreEqual (10, mc.GetCount (), "#EGV2");
- global::System.Threading.Thread.Sleep (1000);
+ global::System.Threading.Thread.Sleep (4 * 1000);
// we have waited but the items won't be expired by the timer since it wont have fired yet
Assert.AreEqual (10, mc.GetCount (), "#EGV3");