add serf check to TestAPI_ConnectCARoots_empty, TestAPI_ConnectCAConfig_get_set

This commit is contained in:
Alvin Huang 2019-02-22 13:38:21 -05:00
parent c45a193e3d
commit 9953306901
1 changed files with 3 additions and 0 deletions

View File

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