From 914e9e1226d27dfd1a5aaff02bc5cf855df3eb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Fri, 11 Oct 2024 14:19:07 +0300 Subject: [PATCH] MSP-4211 Fix ws proxy test --- tests/acceptance_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/acceptance_test.go b/tests/acceptance_test.go index d844a20..f0705c8 100644 --- a/tests/acceptance_test.go +++ b/tests/acceptance_test.go @@ -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()