move sleep to be after replica sync

This commit is contained in:
Travis Turner 2018-07-31 15:59:21 -05:00
parent 68dc6489ce
commit 2dd655f0e9
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -48,12 +48,12 @@ 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())
// Wait to ensure writes make it to translate store
time.Sleep(100 * time.Millisecond)
rc, err := store.Reader(context.Background(), 11) // offset=11 skips the first entry: \n\x01\x01i\x00\x01\x01\x03foo
// Close the primary to disconnect reader.