From ae0d6fac457297001dfdc584577786081c95bfc7 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Tue, 29 Jul 2025 09:18:30 -0400 Subject: [PATCH] hs-test: fix nsim interface in TcpWithLoss tests Type: test Change-Id: I94b3f052fa7a482083ae7459f1cfea067453c9b5 Signed-off-by: Matus Fabian --- extras/hs-test/echo_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extras/hs-test/echo_test.go b/extras/hs-test/echo_test.go index 24ebb6d3d8d..ee510545dac 100644 --- a/extras/hs-test/echo_test.go +++ b/extras/hs-test/echo_test.go @@ -108,10 +108,10 @@ func TcpWithLossTest(s *VethsSuite) { clientVpp := s.Containers.ClientVpp.VppInstance // Add loss of packets with Network Delay Simulator - clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" + - " packet-size 1400 packets-per-drop 1000") + s.Log(clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" + + " packet-size 1400 packets-per-drop 1000")) - clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Server.Name()) + s.Log(clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Client.Name())) // Do echo test from client-vpp container output := clientVpp.Vppctl("test echo client uri tcp://%s/%s verbose echo-bytes bytes 50m", @@ -130,10 +130,10 @@ func TcpWithLoss6Test(s *Veths6Suite) { clientVpp := s.Containers.ClientVpp.VppInstance // Add loss of packets with Network Delay Simulator - clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" + - " packet-size 1400 packets-per-drop 1000") + s.Log(clientVpp.Vppctl("set nsim poll-main-thread delay 0.01 ms bandwidth 40 gbit" + + " packet-size 1400 packets-per-drop 1000")) - clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Server.Name()) + s.Log(clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Client.Name())) // Do echo test from client-vpp container output := clientVpp.Vppctl("test echo client uri tcp://%s/%s verbose echo-bytes bytes 50m", -- 2.16.6