mirror of https://github.com/hashicorp/consul
Fix flaky snapshot test.
parent
28b1469cb8
commit
5cb614ed73
|
@ -74,6 +74,7 @@ func TestSnapshot_Options(t *testing.T) {
|
|||
t.Run(method, func(t *testing.T) {
|
||||
a := NewTestAgent(t, TestACLConfig())
|
||||
defer a.Shutdown()
|
||||
testrpc.WaitForLeader(t, a.RPC, "dc1")
|
||||
|
||||
body := bytes.NewBuffer(nil)
|
||||
req, _ := http.NewRequest(method, "/v1/snapshot", body)
|
||||
|
@ -88,6 +89,7 @@ func TestSnapshot_Options(t *testing.T) {
|
|||
t.Run(method, func(t *testing.T) {
|
||||
a := NewTestAgent(t, TestACLConfig())
|
||||
defer a.Shutdown()
|
||||
testrpc.WaitForLeader(t, a.RPC, "dc1")
|
||||
|
||||
body := bytes.NewBuffer(nil)
|
||||
req, _ := http.NewRequest(method, "/v1/snapshot?dc=nope", body)
|
||||
|
@ -101,6 +103,7 @@ func TestSnapshot_Options(t *testing.T) {
|
|||
t.Run(method, func(t *testing.T) {
|
||||
a := NewTestAgent(t, TestACLConfig())
|
||||
defer a.Shutdown()
|
||||
testrpc.WaitForLeader(t, a.RPC, "dc1")
|
||||
|
||||
body := bytes.NewBuffer(nil)
|
||||
req, _ := http.NewRequest(method, "/v1/snapshot?stale", body)
|
||||
|
|
Loading…
Reference in New Issue