Skip to content
Snippets Groups Projects
Commit 218b42eb authored by Rick Carback's avatar Rick Carback
Browse files

Make the integration test work by bumping the wait time between starting...

Make the integration test work by bumping the wait time between starting servers and clients and inverting server start order
parent fcfb2f4f
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ mkdir -p $CLIENTOUT ...@@ -17,7 +17,7 @@ mkdir -p $CLIENTOUT
echo "STARTING SERVERS..." echo "STARTING SERVERS..."
for SERVERID in $(seq 1 5) for SERVERID in $(seq 5 -1 1)
do do
IDX=$(($SERVERID - 1)) IDX=$(($SERVERID - 1))
SERVERCMD="../bin/server -v -i $IDX --config server-$SERVERID.yaml" SERVERCMD="../bin/server -v -i $IDX --config server-$SERVERID.yaml"
...@@ -47,7 +47,7 @@ finish() { ...@@ -47,7 +47,7 @@ finish() {
trap finish EXIT trap finish EXIT
trap finish INT trap finish INT
sleep 20 # FIXME: We should not need this, but the servers don't respond quickly sleep 60 # FIXME: We should not need this, but the servers don't respond quickly
# enough on boot right now. # enough on boot right now.
export LASTNODE="localhost:50004" export LASTNODE="localhost:50004"
...@@ -95,14 +95,15 @@ runclients() { ...@@ -95,14 +95,15 @@ runclients() {
} }
# Start a channelbot server # Start a channelbot server
../bin/client channelbot -v -i 31 --nick "#general" --numnodes 5 -s $LASTNODE \ # ../bin/client channelbot -v -i 31 --nick "#general" --numnodes 5 -s $LASTNODE \
--noBlockingTransmission -f blobchannel \ # -f blobchannel \
2>&1 > $CHANNELOUT & # 2>&1 > $CHANNELOUT &
# Start a dummy client # Start a dummy client
../bin/client -i 35 -d 35 -s $LASTNODE --numnodes 5 -m "dummy" --nick "dummy" \ # ../bin/client -i 35 -d 35 -s $LASTNODE --numnodes 5 -m "dummy" --nick "dummy" \
--dummyfrequency 0.05 --noBlockingTransmission \ # --dummyfrequency 0.05 \
-f blobdummy 2>&1 > $DUMMYOUT & # -f blobdummy 2>&1 > $DUMMYOUT &
# echo $! >> results/serverpids
echo "RUNNING CLIENTS..." echo "RUNNING CLIENTS..."
runclients runclients
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment