Merge pull request #1568 from codysoyland/translator-test-sleep

Add more time to sleep in translator tests due to CI failures
This commit is contained in:
Cody Soyland 2018-07-31 21:05:49 -05:00 committed by GitHub
commit edf6fa9c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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