From 1b772c449d7e47a5d59649b24061a334509f6899 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 30 May 2020 20:06:34 +0000 Subject: [PATCH] tests: run bcakend tests for 50 seconds instead of 60 because this is the point of optimization --- tests/frontend/travis/runnerLoadTest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/frontend/travis/runnerLoadTest.sh b/tests/frontend/travis/runnerLoadTest.sh index f111caceb..c4b538766 100755 --- a/tests/frontend/travis/runnerLoadTest.sh +++ b/tests/frontend/travis/runnerLoadTest.sh @@ -14,6 +14,7 @@ cd "${MY_DIR}/../../../" # This is possible because the "install" section of .travis.yml already contains # a call to bin/installDeps.sh echo "Running Etherpad directly, assuming bin/installDeps.sh has already been run" + node node_modules/ep_etherpad-lite/node/server.js "${@}" > /dev/null & echo "Now I will try for 15 seconds to connect to Etherpad on http://localhost:9001" @@ -38,8 +39,8 @@ curl http://localhost:9001/p/minifyme -f -s > /dev/null sleep 10 # run the backend tests -echo "Now run the load tests for 60 seconds and if it stalls before 100 then error" -etherpad-loadtest -d 60 +echo "Now run the load tests for 50 seconds and if it stalls before 100 then error" +etherpad-loadtest -d 50 exit_code=$? kill $!