From 7252679232266bafc59fcbc21fbb5e0c6793f912 Mon Sep 17 00:00:00 2001 From: Alvin Huang Date: Fri, 22 Feb 2019 10:37:09 -0500 Subject: [PATCH] add serf check to TestAPI_ClientPutGetDelete, TestAPI_ClientWatchGet --- api/kv_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/kv_test.go b/api/kv_test.go index f19cfc1a78..abd21b2d57 100644 --- a/api/kv_test.go +++ b/api/kv_test.go @@ -15,6 +15,7 @@ func TestAPI_ClientPutGetDelete(t *testing.T) { kv := c.KV() + s.WaitForSerfCheck(t) // Get a get without a key key := testKey() pair, _, err := kv.Get(key, nil) @@ -229,6 +230,7 @@ func TestAPI_ClientWatchGet(t *testing.T) { kv := c.KV() + s.WaitForSerfCheck(t) // Get a get without a key key := testKey() pair, meta, err := kv.Get(key, nil)