File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
StackExchange.Redis.Tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public void AggressiveParallel(TestMode testMode)
31
31
{
32
32
int count = 2 ;
33
33
int errorCount = 0 ;
34
+ int bgErrorCount = 0 ;
34
35
var evt = new ManualResetEvent ( false ) ;
35
36
using ( var c1 = Create ( testMode ) )
36
37
using ( var c2 = Create ( testMode ) )
@@ -49,9 +50,9 @@ void cb(object obj)
49
50
conn . Ping ( ) ;
50
51
if ( Interlocked . Decrement ( ref count ) == 0 ) evt . Set ( ) ;
51
52
}
52
- catch ( Exception ex )
53
+ catch
53
54
{
54
- Assert . True ( false , "Exception in AggressiveParallel callback: " + ex . Message ) ;
55
+ Interlocked . Increment ( ref bgErrorCount ) ;
55
56
}
56
57
}
57
58
int db = testMode == TestMode . Twemproxy ? 0 : 2 ;
@@ -60,6 +61,7 @@ void cb(object obj)
60
61
evt . WaitOne ( 8000 ) ;
61
62
}
62
63
Assert . Equal ( 0 , Interlocked . CompareExchange ( ref errorCount , 0 , 0 ) ) ;
64
+ Assert . Equal ( 0 , bgErrorCount ) ;
63
65
}
64
66
65
67
[ Fact ]
You can’t perform that action at this time.
0 commit comments