Skip to content

Commit 03dbf25

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 integration_tests/functional/test_net.py::test_tap_offload[uvm_restored-vmlinux-5.10.236] - ChildProcessError: [17861] Command: ['ip', 'netns', 'exec', 'netns-gw1-1', 'ssh', '-o', 'ControlPath=/srv/jailer/firecracker/4b087ca9-b1ec-4bf8-9dfd-2d6dcc378b9e/root/ssh-0.sock', '[email protected]', 'sync; cat /tmp/out.txt'] [17861] stdout: [17861] stderr: cat: /tmp/out.txt: No such file or directory We theorize this is due to not waiting long enough for socat to spin up, so add a quick sleep. Signed-off-by: Patrick Roy <[email protected]>
1 parent 94660fe commit 03dbf25

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)