From 6c910f2652c0ac5d14568082748856c16e9ce33b Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Tue, 8 Feb 2022 13:46:26 +0100 Subject: update tests to specify maximum number of redirections --- tests/network-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/network-setup.sh b/tests/network-setup.sh index 4a19ead..c8bf18f 100755 --- a/tests/network-setup.sh +++ b/tests/network-setup.sh @@ -13,6 +13,7 @@ fi start () { NUM_CLIENTS=3 + NUM_REDIRECT=3 ip netns add srv ip netns add br @@ -100,7 +101,7 @@ start () { ip -net srv addr add 10.141.10.1/24 dev veth0 ip -net srv link set up dev veth0 - ip netns exec srv .././tiptorrent --max-clients $NUM_CLIENTS --redirect --root . & + ip netns exec srv .././tiptorrent --max-clients $NUM_CLIENTS --redirect $NUM_REDIRECT --root . & ip -net c1 addr add 10.141.10.2/24 dev veth0 ip -net c1 link set up dev veth0 -- cgit v1.2.3-18-g5258