adjust test to allow time for translation replication

This commit is contained in:
Travis Turner 2018-08-15 15:15:51 -05:00
parent 2f892e5e80
commit 1deb42a24a
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -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",