mirror of https://github.com/certusone/santa.git
fix testcode to wait for next blockg
This commit is contained in:
parent
3faee11bbb
commit
1545d22e8d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue