Skip to content

Commit

Permalink
add delay to test to wait for proxy to come up
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Blose committed May 24, 2015
1 parent f3d10a1 commit e23b2dd
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -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 {
Expand Down

0 comments on commit e23b2dd

Please sign in to comment.