Test script bugfix

This commit is contained in:
Soam Vasani
2016-08-24 13:10:17 -07:00
parent 076b57c50a
commit 337843f5bc
+5 -4
View File
@@ -9,6 +9,11 @@ DIR=$(dirname $0)
echo "-- Starting server"
node $DIR/../server.js --codepath $DIR/test.js --port 8888 &
function cleanup() {
echo "-- Cleanup"
kill %1
}
trap cleanup EXIT
sleep 2
echo "-- Specializing"
@@ -16,7 +21,3 @@ curl -f -X POST http://localhost:8888/specialize
echo "-- Running user function"
curl -f http://localhost:8888 ; echo
echo "-- Cleanup"
kill %1