mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Fix unstable test TestRegisterMonitor_heartbeat (#4568)
This commit is contained in:
parent
2eefa74710
commit
3f9d1370b7
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/hashicorp/consul/agent"
|
"github.com/hashicorp/consul/agent"
|
||||||
"github.com/hashicorp/consul/api"
|
"github.com/hashicorp/consul/api"
|
||||||
|
"github.com/hashicorp/consul/testrpc"
|
||||||
"github.com/hashicorp/consul/testutil/retry"
|
"github.com/hashicorp/consul/testutil/retry"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
@ -42,6 +43,7 @@ func TestRegisterMonitor_heartbeat(t *testing.T) {
|
|||||||
defer a.Shutdown()
|
defer a.Shutdown()
|
||||||
client := a.Client()
|
client := a.Client()
|
||||||
|
|
||||||
|
testrpc.WaitForLeader(t, a.RPC, "dc1")
|
||||||
m, _ := testMonitor(t, client)
|
m, _ := testMonitor(t, client)
|
||||||
defer m.Close()
|
defer m.Close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user