Skip to content

Commit ceb18f6

Browse files
authored
Merge branch 'main' into main
2 parents f93eab8 + 0952a22 commit ceb18f6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/integration_tests/functional/test_api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import platform
99
import re
1010
import resource
11-
import time
1211
from pathlib import Path
1312

1413
import packaging.version
@@ -1020,12 +1019,9 @@ def test_api_balloon(uvm_nano):
10201019
)
10211020

10221021
# Start the microvm.
1022+
test_microvm.add_net_iface()
10231023
test_microvm.start()
10241024

1025-
# Give the balloon driver time to initialize.
1026-
# 500 ms is the maximum acceptable boot time.
1027-
time.sleep(0.5)
1028-
10291025
# But updating should be OK.
10301026
test_microvm.api.balloon.patch(amount_mib=4)
10311027

tests/integration_tests/functional/test_net.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@ def test_tap_offload(uvm_any):
108108
# Start a UDP server in the guest
109109
# vm.ssh.check_output(f"nohup socat UDP-LISTEN:{port} - > {out_filename} &")
110110
vm.ssh.check_output(
111-
f"nohup socat UDP4-LISTEN:{port} OPEN:{out_filename},creat > /dev/null 2>&1 &"
111+
f"nohup socat UDP4-LISTEN:{port} CREATE:{out_filename} > /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)