From fcd5da3bf795bcb49b12d077b182003ca5a03183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Tis=C3=A4ter?= Date: Wed, 7 May 2014 23:17:00 +0200 Subject: [PATCH] Drop unnecessary sleep --- command/agent/http_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/command/agent/http_test.go b/command/agent/http_test.go index 8d4a63d004..60d28b6f46 100644 --- a/command/agent/http_test.go +++ b/command/agent/http_test.go @@ -99,9 +99,6 @@ func TestContentTypeIsJSON(t *testing.T) { defer srv.Shutdown() defer srv.agent.Shutdown() - // Wait for a leader - time.Sleep(100 * time.Millisecond) - resp := httptest.NewRecorder() handler := func(resp http.ResponseWriter, req *http.Request) (interface{}, error) {