From 39a82091f2feb8b8cbbf3186371b52199401dd90 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Tue, 31 Jul 2018 14:11:24 -0500 Subject: [PATCH] Add sleep in tests to ensure writes make it to translate store --- http/translator_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http/translator_test.go b/http/translator_test.go index 05a4da2e6..bc882c23f 100644 --- a/http/translator_test.go +++ b/http/translator_test.go @@ -48,6 +48,9 @@ func TestTranslateStore_Reader(t *testing.T) { t.Fatal(err) } + // Wait to ensure writes make it to translate store + time.Sleep(100 * time.Millisecond) + // Connect to server and stream all available data. store := http.NewTranslateStore(primary.URL())