From 1deb42a24a2996bf4ec5a90239f9c58fd34e12a5 Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Wed, 15 Aug 2018 15:15:51 -0500 Subject: [PATCH] adjust test to allow time for translation replication --- http/client_test.go | 5 +++++ 1 file changed, 5 insertions(+) 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",