File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
projects/client/Unit/src/unit Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,16 @@ public class TestConnectionBlocked : IntegrationFixture {
63
63
[ Test ]
64
64
public void TestConnectionBlockedNotification ( )
65
65
{
66
- Conn . ConnectionBlocked += new ConnectionBlockedEventHandler ( HandleBlocked ) ;
67
- Conn . ConnectionUnblocked += new ConnectionUnblockedEventHandler ( HandleUnblocked ) ;
66
+ Conn . ConnectionBlocked += HandleBlocked ;
67
+ Conn . ConnectionUnblocked += HandleUnblocked ;
68
68
69
69
Block ( ) ;
70
+ // give rabbitmqctl some time to do its job
71
+ Thread . Sleep ( 800 ) ;
70
72
Publish ( Conn ) ;
71
73
lock ( lockObject ) {
72
74
if ( ! notified ) {
73
- Monitor . Wait ( lockObject , TimeSpan . FromSeconds ( 10 ) ) ;
75
+ Monitor . Wait ( lockObject , TimeSpan . FromSeconds ( 8 ) ) ;
74
76
}
75
77
Assert . IsTrue ( notified ) ;
76
78
}
You can’t perform that action at this time.
0 commit comments