MSP-4211 Fix ws proxy test
This commit is contained in:
1 parent
d09e784ca8
commit
914e9e1226
1 file changed
+4
-1
@@ -8,6 +8,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"isp-gate-service/assembly"
|
"isp-gate-service/assembly"
|
||||||
"isp-gate-service/conf"
|
"isp-gate-service/conf"
|
||||||
@@ -189,7 +190,9 @@ func (s *HappyPathTestSuite) TestWsProxy() { // nolint: funlen
|
|||||||
}.Encode()
|
}.Encode()
|
||||||
err = cli.Dial(context.Background(), requestUrl.String())
|
err = cli.Dial(context.Background(), requestUrl.String())
|
||||||
require.NoError(err)
|
require.NoError(err)
|
||||||
resp, err := cli.EmitWithAck(context.Background(), "hello", []byte("data"))
|
ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
|
||||||
|
defer cancel()
|
||||||
|
resp, err := cli.EmitWithAck(ctx, "hello", []byte("data"))
|
||||||
require.NoError(err)
|
require.NoError(err)
|
||||||
require.EqualValues("world", string(resp))
|
require.EqualValues("world", string(resp))
|
||||||
err = cli.Close()
|
err = cli.Close()
|
||||||
|
|||||||
Reference in new issue
Block a user