Skip to content

Commit

Permalink
allowing more time for clients to timeout for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Oct 10, 2020
1 parent 030e186 commit 0154303
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Runtime/Server/MultiBadHandshake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ public IEnumerator MultipleGoodAndBadClients()
}
Task<RunNode.Result> task = RunNode.RunAsync("ConnectAndCloseMany.js", arg0: clientCount.ToString());

// wait for timeout so bad clients disconnect
yield return new WaitForSeconds(timeout / 1000);
// wait extra second for stuff to process
yield return new WaitForSeconds(2);
// wait for timeout + extra so bad clients disconnect
yield return new WaitForSeconds(2 * timeout / 1000);

Assert.That(onConnect, Has.Count.EqualTo(clientCount), "Connect should not be called");
Assert.That(onDisconnect, Has.Count.EqualTo(clientCount), "Disconnect should not be called");
Expand Down

0 comments on commit 0154303

Please sign in to comment.