@@ -52,7 +52,6 @@ internal class TestHeartbeats : IntegrationFixture
52
52
private const UInt16 heartbeatTimeout = 2 ;
53
53
54
54
[ Test ]
55
- [ Category ( "Focus" ) ]
56
55
public void TestThatHeartbeatWriterUsesConfigurableInterval ( )
57
56
{
58
57
if ( ! LongRunningTestsEnabled ( ) )
@@ -74,7 +73,7 @@ public void TestThatHeartbeatWriterUsesConfigurableInterval()
74
73
{
75
74
lock ( conn )
76
75
{
77
- if ( InitiatedByPeerOrLibrary ( evt ) )
76
+ if ( InitiatedByPeerOrLibrary ( evt ) )
78
77
{
79
78
CheckInitiator ( evt ) ;
80
79
wasShutdown = true ;
@@ -90,7 +89,6 @@ public void TestThatHeartbeatWriterUsesConfigurableInterval()
90
89
}
91
90
92
91
[ Test ]
93
- [ Category ( "Focus" ) ]
94
92
public void TestHundredsOfConnectionsWithRandomHeartbeatInterval ( )
95
93
{
96
94
if ( ! LongRunningTestsEnabled ( ) )
@@ -99,10 +97,9 @@ public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
99
97
return ;
100
98
}
101
99
102
-
103
100
var rnd = new Random ( ) ;
104
101
List < IConnection > xs = new List < IConnection > ( ) ;
105
- for ( var i = 0 ; i < 200 ; i ++ )
102
+ for ( var i = 0 ; i < 200 ; i ++ )
106
103
{
107
104
var n = Convert . ToUInt16 ( rnd . Next ( 2 , 6 ) ) ;
108
105
var cf = new ConnectionFactory ( ) { RequestedHeartbeat = n , AutomaticRecoveryEnabled = false } ;
@@ -119,16 +116,15 @@ public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
119
116
120
117
SleepFor ( 60 ) ;
121
118
122
- foreach ( var x in xs )
119
+ foreach ( var x in xs )
123
120
{
124
121
x . Close ( ) ;
125
122
}
126
-
127
123
}
128
124
129
125
private void CheckInitiator ( ShutdownEventArgs evt )
130
126
{
131
- if ( InitiatedByPeerOrLibrary ( evt ) )
127
+ if ( InitiatedByPeerOrLibrary ( evt ) )
132
128
{
133
129
var s = String . Format ( "Shutdown: {0}, initiated by: {1}" ,
134
130
evt , evt . Initiator ) ;
@@ -140,7 +136,7 @@ private void CheckInitiator(ShutdownEventArgs evt)
140
136
private bool LongRunningTestsEnabled ( )
141
137
{
142
138
var s = Environment . GetEnvironmentVariable ( "RABBITMQ_LONG_RUNNING_TESTS" ) ;
143
- if ( s == null || s . Equals ( "" ) )
139
+ if ( s == null || s . Equals ( "" ) )
144
140
{
145
141
return false ;
146
142
}
0 commit comments