[wscat] Try increasing timeout.
This commit is contained in:
parent
669c0733d2
commit
fb13bf5eb5
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ func startCommand(t *testing.T, addr string) (conn *Conn, stop func()) {
|
||||||
// try killing softly
|
// try killing softly
|
||||||
_ = cmd.Process.Signal(syscall.SIGTERM)
|
_ = cmd.Process.Signal(syscall.SIGTERM)
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100)
|
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*200)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
@ -132,7 +132,7 @@ func TestWScat(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// give client time to make a request
|
// give client time to make a request
|
||||||
time.Sleep(time.Millisecond * 100)
|
time.Sleep(time.Millisecond * 200)
|
||||||
stop()
|
stop()
|
||||||
|
|
||||||
require.Equal(t, bytes.Join(in, nil), bytes.Join(received, nil))
|
require.Equal(t, bytes.Join(in, nil), bytes.Join(received, nil))
|
||||||
|
|
Loading…
Reference in a new issue