File tree Expand file tree Collapse file tree 3 files changed +7
-86
lines changed Expand file tree Collapse file tree 3 files changed +7
-86
lines changed Original file line number Diff line number Diff line change 86
86
<Compile Include =" IO\TestSerializers.cs" />
87
87
<Compile Include =" Net\Cache\CacheInvalidAddressTimeoutTest.cs" />
88
88
<Compile Include =" Net\Cache\CachesTimeoutTest.cs" />
89
- <Compile Include =" Net\Cache\CacheTimeoutTest.cs" />
90
89
<Compile Include =" Net\Cache\CacheWithTimeoutTest.cs" />
91
90
<Compile Include =" Net\Cache\InvocableCacheTest.cs" />
92
91
<Compile Include =" Net\Cache\ViewTests.cs" />
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public void testShouldTimeoutWithGetCache()
63
63
}
64
64
catch ( Exception e )
65
65
{
66
- Assert . Fail ( "CacheFactory.getCache() failed to get the cache!" ) ;
66
+ Assert . Fail ( "CacheFactory.getCache() failed to get the cache with exception: " + e ) ;
67
67
}
68
68
} ) ;
69
69
@@ -73,9 +73,13 @@ public void testShouldTimeoutWithGetCache()
73
73
74
74
try
75
75
{
76
- using ( ThreadTimeout t = ThreadTimeout . After ( 1000 ) )
76
+ using ( ThreadTimeout t = ThreadTimeout . After ( 100 ) )
77
77
{
78
- CacheFactory . GetCache ( "dist-timeout-cache2" ) ;
78
+ INamedCache cache = CacheFactory . GetCache ( "dist-timeout-cache2" ) ;
79
+ for ( int i = 0 ; i < 5000 ; i ++ )
80
+ {
81
+ cache . Add ( "key" + i , "value" + i ) ;
82
+ }
79
83
Assert . Fail ( "CacheFactory.getCache() did not get ThreadInterruptedException!" ) ;
80
84
}
81
85
}
You can’t perform that action at this time.
0 commit comments