File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 88import platform
99import re
1010import resource
11- import time
1211from pathlib import Path
1312
1413import 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments