mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
Remove all sleeps from status_endpoint_test.go
This commit is contained in:
parent
c0de985b91
commit
176e3eb9df
@ -1,6 +1,7 @@
|
||||
package consul
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/consul/testutil"
|
||||
"github.com/ugorji/go/codec"
|
||||
"net"
|
||||
"net/rpc"
|
||||
@ -38,7 +39,7 @@ func TestStatusLeader(t *testing.T) {
|
||||
t.Fatalf("unexpected leader: %v", leader)
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
testutil.WaitForLeader(t, client.Call, "dc1")
|
||||
|
||||
if err := client.Call("Status.Leader", arg, &leader); err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user