Skip to content

Commit 366a15e

Browse files
Dispose timers explicitly, run flood test longer, use 2Kb messages
1 parent f026d13 commit 366a15e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,17 @@ public void TestUnthrottledFloodPublishing()
7575
};
7676

7777
bool elapsed = false;
78-
var t = new System.Timers.Timer(1000 * 65);
78+
var t = new System.Timers.Timer(1000 * 185);
7979
t.Elapsed += (_sender, _args) => { elapsed = true; };
8080
t.AutoReset = false;
8181
t.Start();
8282

8383
while (!elapsed)
8484
{
85-
Model.BasicPublish("", "", null, encoding.GetBytes("msg"));
85+
Model.BasicPublish("", "", null, new byte[2048]);
8686
}
8787
Assert.IsTrue(Conn.IsOpen);
88+
t.Dispose();
8889
}
8990
}
9091
}

0 commit comments

Comments
 (0)