MSP-4211 Fix ws proxy test

This commit is contained in:
Синельник Тимур Романович committed 2024-10-11 14:32:17 +03:00
1 parent d09e784ca8
commit 914e9e1226
1 file changed
+4 -1
+4 -1
View File
@@ -8,6 +8,7 @@ import (
"net/url"
"strconv"
"testing"
"time"
"isp-gate-service/assembly"
"isp-gate-service/conf"
@@ -189,7 +190,9 @@ func (s *HappyPathTestSuite) TestWsProxy() { // nolint: funlen
}.Encode()
err = cli.Dial(context.Background(), requestUrl.String())
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.EqualValues("world", string(resp))
err = cli.Close()