add serf check to TestAPI_ConnectCARoots_empty, TestAPI_ConnectCAConfig_get_set

pull/5376/head
Alvin Huang 6 years ago
parent 7b4fb32545
commit 9780892ebe

@ -21,6 +21,8 @@ func TestAPI_ConnectCARoots_empty(t *testing.T) {
}) })
defer s.Stop() defer s.Stop()
s.WaitForSerfCheck(t)
connect := c.Connect() connect := c.Connect()
_, _, err := connect.CARoots(nil) _, _, err := connect.CARoots(nil)
@ -60,6 +62,7 @@ func TestAPI_ConnectCAConfig_get_set(t *testing.T) {
c, s := makeClient(t) c, s := makeClient(t)
defer s.Stop() defer s.Stop()
s.WaitForSerfCheck(t)
expected := &ConsulCAProviderConfig{ expected := &ConsulCAProviderConfig{
RotationPeriod: 90 * 24 * time.Hour, RotationPeriod: 90 * 24 * time.Hour,
} }

Loading…
Cancel
Save