Test script bugfix
This commit is contained in:
@@ -9,6 +9,11 @@ DIR=$(dirname $0)
|
|||||||
|
|
||||||
echo "-- Starting server"
|
echo "-- Starting server"
|
||||||
node $DIR/../server.js --codepath $DIR/test.js --port 8888 &
|
node $DIR/../server.js --codepath $DIR/test.js --port 8888 &
|
||||||
|
function cleanup() {
|
||||||
|
echo "-- Cleanup"
|
||||||
|
kill %1
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
echo "-- Specializing"
|
echo "-- Specializing"
|
||||||
@@ -16,7 +21,3 @@ curl -f -X POST http://localhost:8888/specialize
|
|||||||
|
|
||||||
echo "-- Running user function"
|
echo "-- Running user function"
|
||||||
curl -f http://localhost:8888 ; echo
|
curl -f http://localhost:8888 ; echo
|
||||||
|
|
||||||
echo "-- Cleanup"
|
|
||||||
kill %1
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user