Skip to content

Commit 52e66b0

Browse files
Cosmetics
1 parent 119f6d7 commit 52e66b0

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

projects/client/Unit/src/unit/TestHeartbeats.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ internal class TestHeartbeats : IntegrationFixture
5252
private const UInt16 heartbeatTimeout = 2;
5353

5454
[Test]
55-
[Category("Focus")]
5655
public void TestThatHeartbeatWriterUsesConfigurableInterval()
5756
{
5857
if (!LongRunningTestsEnabled())
@@ -74,7 +73,7 @@ public void TestThatHeartbeatWriterUsesConfigurableInterval()
7473
{
7574
lock (conn)
7675
{
77-
if(InitiatedByPeerOrLibrary(evt))
76+
if (InitiatedByPeerOrLibrary(evt))
7877
{
7978
CheckInitiator(evt);
8079
wasShutdown = true;
@@ -90,7 +89,6 @@ public void TestThatHeartbeatWriterUsesConfigurableInterval()
9089
}
9190

9291
[Test]
93-
[Category("Focus")]
9492
public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
9593
{
9694
if (!LongRunningTestsEnabled())
@@ -99,10 +97,9 @@ public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
9997
return;
10098
}
10199

102-
103100
var rnd = new Random();
104101
List<IConnection> xs = new List<IConnection>();
105-
for(var i = 0; i < 200; i++)
102+
for (var i = 0; i < 200; i++)
106103
{
107104
var n = Convert.ToUInt16(rnd.Next(2, 6));
108105
var cf = new ConnectionFactory() { RequestedHeartbeat = n, AutomaticRecoveryEnabled = false };
@@ -119,16 +116,15 @@ public void TestHundredsOfConnectionsWithRandomHeartbeatInterval()
119116

120117
SleepFor(60);
121118

122-
foreach(var x in xs)
119+
foreach (var x in xs)
123120
{
124121
x.Close();
125122
}
126-
127123
}
128124

129125
private void CheckInitiator(ShutdownEventArgs evt)
130126
{
131-
if(InitiatedByPeerOrLibrary(evt))
127+
if (InitiatedByPeerOrLibrary(evt))
132128
{
133129
var s = String.Format("Shutdown: {0}, initiated by: {1}",
134130
evt, evt.Initiator);
@@ -140,7 +136,7 @@ private void CheckInitiator(ShutdownEventArgs evt)
140136
private bool LongRunningTestsEnabled()
141137
{
142138
var s = Environment.GetEnvironmentVariable("RABBITMQ_LONG_RUNNING_TESTS");
143-
if(s == null || s.Equals(""))
139+
if (s == null || s.Equals(""))
144140
{
145141
return false;
146142
}

0 commit comments

Comments
 (0)