From 7857f2564959ef154639693cca46098f1adb9db0 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 8 Aug 2017 12:46:17 +0200 Subject: [PATCH] No sleep, just wait for one block to exist --- client/commands/query/query_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/commands/query/query_test.go b/client/commands/query/query_test.go index 2bce1642fd..87e92f036e 100644 --- a/client/commands/query/query_test.go +++ b/client/commands/query/query_test.go @@ -3,7 +3,6 @@ package query import ( "os" "testing" - "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -42,7 +41,8 @@ func TestAppProofs(t *testing.T) { assert, require := assert.New(t), require.New(t) cl := client.NewLocal(node) - time.Sleep(200 * time.Millisecond) + // make sure one block is created + client.WaitForHeight(cl, 1, nil) k := []byte("my-key") v := []byte("my-value")