mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
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…
x
Reference in New Issue
Block a user