wscat: check exit code.
This commit is contained in:
parent
ad2695a092
commit
42271fdecb
1 changed files with 2 additions and 2 deletions
|
@ -14,6 +14,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/slon/shad-go/tools/testtool"
|
"gitlab.com/slon/shad-go/tools/testtool"
|
||||||
|
@ -62,7 +63,7 @@ func startCommand(t *testing.T, addr string) (conn *Conn, stop func()) {
|
||||||
|
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
_ = cmd.Wait()
|
assert.NoError(t, cmd.Wait())
|
||||||
close(done)
|
close(done)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -85,7 +86,6 @@ func startCommand(t *testing.T, addr string) (conn *Conn, stop func()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require.NoError(t, err)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue