No sleep, just wait for one block to exist

This commit is contained in:
Ethan Frey 2017-08-08 12:46:17 +02:00 committed by Alexis Sellier
parent f7d4b7f721
commit 7857f25649
1 changed files with 2 additions and 2 deletions

View File

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