update tests to specify maximum number of redirections

master
tiptorrent development team 2022-02-08 13:46:26 +01:00
parent f6f3984be7
commit 6c910f2652
1 changed files with 2 additions and 1 deletions

View File

@ -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