From e23b2ddb309daae0c144847252a5a5331ea90573 Mon Sep 17 00:00:00 2001 From: Todd Blose Date: Sun, 24 May 2015 19:13:05 -0400 Subject: [PATCH] add delay to test to wait for proxy to come up --- .../getlantern/lantern-android/client/client_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/github.com/getlantern/lantern-android/client/client_test.go b/src/github.com/getlantern/lantern-android/client/client_test.go index 638d5cafef..cddfd302cd 100644 --- a/src/github.com/getlantern/lantern-android/client/client_test.go +++ b/src/github.com/getlantern/lantern-android/client/client_test.go @@ -27,10 +27,13 @@ func TestListenAndServeStop(t *testing.T) { // Creating a client. c := NewClient(listenProxyAddr, "FireTweetTest") + // Allow it some seconds to start. + time.Sleep(time.Second * 3) + c.ServeHTTP() // Allow it some seconds to start. - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Second) // Attempt to stop server. if err := c.Client.Stop(); err != nil {