fix testcode to wait for next blockg

This commit is contained in:
Yun 2019-08-08 18:12:18 +09:00
parent 3faee11bbb
commit 1545d22e8d
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"bytes"
"log"
"strings"
"time"
"testing"
"github.com/stretchr/testify/require"
@ -12,6 +13,9 @@ import (
func TestWebsocketListen(t *testing.T) {
app := setupWithPlentyBalanceAccount(t)
// DO NOT TOUCH - wait next block
time.Sleep(time.Second * 10)
var logBuf bytes.Buffer
log.SetOutput(&logBuf)
defer log.SetOutput(os.Stderr)