Increasing "SERVER_WAIT" for TCPChannelClient tests.

This is the time to wait after creating the server to ensure it's
listening before trying to connect to it. The previous value of 10 was
not enough; tests occasionally failed.

Bug: webrtc:8711
Change-Id: I67d592fdb9a863d574f2a33096b7050935693f4e
Reviewed-on: https://webrtc-review.googlesource.com/44521
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21793}
This commit is contained in:
Taylor Brandstetter
2018-01-26 12:20:27 -08:00
committed by Commit Bot
parent dee9191fdf
commit 1f5e98d97e

View File

@ -35,10 +35,10 @@ import java.util.concurrent.TimeUnit;
public class TCPChannelClientTest {
private static final int PORT = 8888;
/**
* How long we wait before trying to connect to the server. Chosen quite arbitrarily and
* could be made smaller if need be.
* How long we wait before trying to connect to the server. Note: was
* previously only 10, which was too short (tests were flaky).
*/
private static final int SERVER_WAIT = 10;
private static final int SERVER_WAIT = 100;
private static final int CONNECT_TIMEOUT = 100;
private static final int SEND_TIMEOUT = 100;
private static final int DISCONNECT_TIMEOUT = 100;