Add more time to sleep in translator tests due to CI failures

This commit is contained in:
Cody Soyland 2018-07-31 20:38:18 -05:00
parent 5802ba37b2
commit c44bb65163
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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