The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4730
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === This fixes random hangs when running the test suite. Signed-off-by: Thomas Hipp <[email protected]>
From 1710f7f528ca361a61eb065d2ea84ef550600a61 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <[email protected]> Date: Wed, 4 Jul 2018 14:16:34 +0200 Subject: [PATCH] tests: Add sleep when getting TCP port This fixes random hangs when running the test suite. Signed-off-by: Thomas Hipp <[email protected]> --- test/includes/net.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/includes/net.sh b/test/includes/net.sh index e6e3c2757..855d7389e 100644 --- a/test/includes/net.sh +++ b/test/includes/net.sh @@ -8,6 +8,7 @@ local_tcp_port() { while true; do port=$(shuf -i 10000-32768 -n 1) nc -l 127.0.0.1 "${port}" >/dev/null 2>&1 & + sleep 1 pid=$! kill "${pid}" >/dev/null 2>&1 || continue wait "${pid}" || true
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
