From c44bb651637e09d813196fccbcac4a03b85748b3 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Tue, 31 Jul 2018 20:38:18 -0500 Subject: [PATCH] Add more time to sleep in translator tests due to CI failures --- http/translator_test.go | 2 +- server/handler_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http/translator_test.go b/http/translator_test.go index 458ea895c..660e2e0aa 100644 --- a/http/translator_test.go +++ b/http/translator_test.go @@ -52,7 +52,7 @@ func TestTranslateStore_Reader(t *testing.T) { store := http.NewTranslateStore(primary.URL()) // Wait to ensure writes make it to translate store - time.Sleep(100 * time.Millisecond) + time.Sleep(500 * time.Millisecond) rc, err := store.Reader(context.Background(), 11) // offset=11 skips the first entry: \n\x01\x01i\x00\x01\x01\x03foo diff --git a/server/handler_test.go b/server/handler_test.go index 5617c8ffa..487756c45 100644 --- a/server/handler_test.go +++ b/server/handler_test.go @@ -677,7 +677,7 @@ func TestClusterTranslator(t *testing.T) { test.MustDo("POST", cluster[0].URL()+"/index/i0/query", "Set(\"foo\", f0=\"bar\")") // wait for key to replicate to second node - time.Sleep(100 * time.Millisecond) + time.Sleep(500 * time.Millisecond) result0 := test.MustDo("POST", cluster[0].URL()+"/index/i0/query", "Row(f0=\"bar\")").Body result1 := test.MustDo("POST", cluster[1].URL()+"/index/i0/query", "Row(f0=\"bar\")").Body