From 18bc76d6d5d4b6d947a0ac5851e009ba63ce50fd Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Tue, 10 Jun 2025 18:35:09 -0400 Subject: [PATCH] hs-test: ConnectUdpClient fix deadline in Dial Type: test Change-Id: If2c3061e2c7349c4fd785d6cf417e9b2f0b387a0 Signed-off-by: Matus Fabian --- extras/hs-test/infra/connect_udp_client.go | 2 +- extras/hs-test/proxy_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/hs-test/infra/connect_udp_client.go b/extras/hs-test/infra/connect_udp_client.go index a30ad3a769a..237b758cdc1 100644 --- a/extras/hs-test/infra/connect_udp_client.go +++ b/extras/hs-test/infra/connect_udp_client.go @@ -61,7 +61,7 @@ func (c *ConnectUdpClient) Dial(proxyAddress, targetUri string) error { c.suite.Log("* Connected to proxy") } - conn.SetDeadline(time.Now().Add(time.Second * c.timeout)) + conn.SetDeadline(time.Now().Add(c.timeout)) _, err = conn.Write(req) if err != nil { return err diff --git a/extras/hs-test/proxy_test.go b/extras/hs-test/proxy_test.go index ef7748b3312..0eed1d8c92e 100644 --- a/extras/hs-test/proxy_test.go +++ b/extras/hs-test/proxy_test.go @@ -650,7 +650,6 @@ func VppConnectUdpStressMTTest(s *VppUdpProxySuite) { defer remoteServerConn.Close() vppProxy := s.Containers.VppProxy.VppInstance - vppProxy.Disconnect() cmd := fmt.Sprintf("test proxy server fifo-size 512k server-uri http://%s/%d", s.VppProxyAddr(), s.Ports.Proxy) s.Log(vppProxy.Vppctl(cmd)) -- 2.16.6