diff --git a/http/client_test.go b/http/client_test.go index 700c586de..85a019b91 100644 --- a/http/client_test.go +++ b/http/client_test.go @@ -20,6 +20,7 @@ import ( gohttp "net/http" "reflect" "testing" + "time" "github.com/davecgh/go-spew/spew" "github.com/pilosa/pilosa" @@ -355,6 +356,10 @@ func TestClient_ImportKeys(t *testing.T) { }); err != nil { t.Fatal(err) } + + // Wait for translation replication. + time.Sleep(500 * time.Millisecond) + cmd1.MustRecalculateCaches(t) resp := cmd1.MustQuery(t, &pilosa.QueryRequest{ Index: "keyed",