Skip to content

Commit cf419ef

Browse files
committed
fix(test): add sleep to wait for socat spinup in test_tap_offload
We are seeing an intermittent failure of the form FAILED test_net.py::test_tap_offload - ChildProcessError: [17861] Command:['ssh', ..., 'sync; cat /tmp/out.txt'] [17861] stdout: [17861] stderr: cat: /tmp/out.txt: No such file or directory It seems this is due to not waiting long enough for socat to spin up, so add a quick sleep which makes the issue disappear. Signed-off-by: Patrick Roy <[email protected]>
1 parent 94660fe commit cf419ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration_tests/functional/test_net.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def test_tap_offload(uvm_any):
111111
f"nohup socat UDP4-LISTEN:{port} OPEN:{out_filename},creat > /dev/null 2>&1 &"
112112
)
113113

114+
# wait for socat server to spin up
115+
time.sleep(1)
116+
114117
# Try to send a UDP message from host with UDP offload enabled
115118
vm.netns.check_output(f"python3 ./host_tools/udp_offload.py {vm.ssh.host} {port}")
116119

0 commit comments

Comments
 (0)