Skip to content

Commit 1c85ea2

Browse files
committed
fix some issue on appveyor build
1 parent 20d8f60 commit 1c85ea2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/dmsgtest/env_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestEnv(t *testing.T) {
2828
}
2929
for i, c := range cases {
3030
env := NewEnv(t, timeout)
31-
err := env.Startup(0, c.ServerN, c.ClientN, &dmsg.Config{
31+
err := env.Startup(5*time.Second, c.ServerN, c.ClientN, &dmsg.Config{
3232
MinSessions: c.MinSessions,
3333
})
3434
require.NoError(t, err, i)

pkg/noise/read_writer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func TestNewReadWriter(t *testing.T) {
5050

5151
hsCh := make(chan error, 2)
5252
defer close(hsCh)
53-
go func() { hsCh <- aRW.Handshake(time.Second) }()
54-
go func() { hsCh <- bRW.Handshake(time.Second) }()
53+
go func() { hsCh <- aRW.Handshake(5 * time.Second) }()
54+
go func() { hsCh <- bRW.Handshake(5 * time.Second) }()
5555
require.NoError(t, <-hsCh)
5656
require.NoError(t, <-hsCh)
5757

@@ -186,8 +186,8 @@ func TestReadWriterXKPattern(t *testing.T) {
186186
rwR := NewReadWriter(connR, nR)
187187

188188
errCh := make(chan error)
189-
go func() { errCh <- rwR.Handshake(time.Second) }()
190-
require.NoError(t, rwI.Handshake(time.Second))
189+
go func() { errCh <- rwR.Handshake(5 * time.Second) }()
190+
require.NoError(t, rwI.Handshake(5*time.Second))
191191
require.NoError(t, <-errCh)
192192

193193
go func() {

0 commit comments

Comments
 (0)