From 6a1e67b30a77b0e24314617f794a7122dd83c570 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Mar 2016 18:22:13 +0100 Subject: [PATCH] Fix clean_test script --- bin/clean_test.sh | 2 +- scripts/clean_test.sh | 8 -------- scripts/run_servers.sh | 12 ------------ 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100755 scripts/clean_test.sh delete mode 100755 scripts/run_servers.sh diff --git a/bin/clean_test.sh b/bin/clean_test.sh index ef146e091..ac885d9ec 100755 --- a/bin/clean_test.sh +++ b/bin/clean_test.sh @@ -4,5 +4,5 @@ basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) for i in $(seq 1 6); do printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo - rm -rf "$basePath/../test$i" + rm -rf "$basePath/../server/test$i" done diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh deleted file mode 100755 index ef146e091..000000000 --- a/scripts/clean_test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) - -for i in $(seq 1 6); do - printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo - rm -rf "$basePath/../test$i" -done diff --git a/scripts/run_servers.sh b/scripts/run_servers.sh deleted file mode 100755 index 83768178c..000000000 --- a/scripts/run_servers.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -if [ ! -f server.js ]; then - echo "The script has to be executed at the root of the project." - exit -1 -fi - -NODE_ENV=test NODE_APP_INSTANCE=1 node server.js & -sleep 1 -NODE_ENV=test NODE_APP_INSTANCE=2 node server.js & -sleep 1 -NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &