Skip to content

Commit

Permalink
Fix SettlementHS test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Mar 4, 2020
1 parent 98e4f2d commit 2e7ea61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/transport/handshake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package transport_test
import (
"context"
"testing"
"time"

"github.com/SkycoinProject/dmsg"
"github.com/stretchr/testify/require"
Expand All @@ -19,6 +20,9 @@ func TestSettlementHS(t *testing.T) {
nEnv := snettest.NewEnv(t, keys, []string{dmsg.Type})
defer nEnv.Teardown()

// Wait until the env is fully set up.
time.Sleep(100 * time.Millisecond)

// TEST: Perform a handshake between two snet.Network instances.
t.Run("Do", func(t *testing.T) {
lis1, err := nEnv.Nets[1].Listen(dmsg.Type, skyenv.DmsgTransportPort)
Expand Down

0 comments on commit 2e7ea61

Please sign in to comment.