1
0
Fork 0

Fix clean_test script

This commit is contained in:
Chocobozzz 2016-03-07 18:22:13 +01:00
parent e7870ff368
commit 6a1e67b30a
3 changed files with 1 additions and 21 deletions

View file

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

View file

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

View file

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