Skip to content

Commit f415a84

Browse files
author
mischa
committed
fix flaky tests
1 parent 0e13ae8 commit f415a84

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

kcp2k/kcp2k.Tests/ClientServerTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,33 +160,33 @@ void UpdateSeveralTimes(int amount)
160160
void ConnectClientBlocking(string hostname = "127.0.0.1")
161161
{
162162
client.Connect(hostname, Port);
163-
UpdateSeveralTimes(5);
163+
UpdateSeveralTimes(10); // '5' causes flaky tests
164164
}
165165

166166
// disconnect and give it enough time to handle
167167
void DisconnectClientBlocking()
168168
{
169169
client.Disconnect();
170-
UpdateSeveralTimes(5);
170+
UpdateSeveralTimes(10); // '5' causes flaky tests
171171
}
172172

173173
// kick and give it enough time to handle
174174
void KickClientBlocking(int connectionId)
175175
{
176176
server.Disconnect(connectionId);
177-
UpdateSeveralTimes(5);
177+
UpdateSeveralTimes(10); // '5' causes flaky tests
178178
}
179179

180180
void SendClientToServerBlocking(ArraySegment<byte> message, KcpChannel channel)
181181
{
182182
client.Send(message, channel);
183-
UpdateSeveralTimes(10);
183+
UpdateSeveralTimes(10); // '5' causes flaky tests
184184
}
185185

186186
void SendServerToClientBlocking(int connectionId, ArraySegment<byte> message, KcpChannel channel)
187187
{
188188
server.Send(connectionId, message, channel);
189-
UpdateSeveralTimes(10);
189+
UpdateSeveralTimes(10); // '5' causes flaky tests
190190
}
191191

192192
// tests ///////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)