aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-22 16:37:03 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-22 16:54:09 +0200
commitd1dbc4f992b3789de0624dac16bfacdd977f2a71 (patch)
tree15acf39fd8ea44ab87b1d02a06a7e9eee2952a69
parent856b04490adf3dee0fe5894c36dde29062aefbe9 (diff)
downloadpasst-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar.gz
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar.bz2
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar.lz
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar.xz
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.tar.zst
passt-d1dbc4f992b3789de0624dac16bfacdd977f2a71.zip
test/lib: Wait for kernel to free up ports used by iperf3 before reusing them
If we start another server on the same port right away, we might fail to bind the port. A small delay appears to be needed -- I'm not entirely sure why at this point. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-xtest/lib/test2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/test b/test/lib/test
index 7259383..558d0f0 100755
--- a/test/lib/test
+++ b/test/lib/test
@@ -68,6 +68,8 @@ test_iperf3() {
'for i in $(seq 0 '${__procs}'); do rm s${i}.json; done'
TEST_ONE_subs="$(list_add_pair "${TEST_ONE_subs}" "__${__var}__" "${__bw}" )"
+
+ sleep 3 # Wait for kernel to free up ports
}
test_one_line() {