mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 03:47:51 +00:00
move sleep to be after replica sync
This commit is contained in:
parent
68dc6489ce
commit
2dd655f0e9
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue