mirror of https://github.com/status-im/consul.git
Drop unnecessary sleep
This commit is contained in:
parent
e4598284fd
commit
fcd5da3bf7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue