#!/bin/sh

TEST_PORT=`shuf -i 3000-65000 -n 1`
export TEST_PORT
cd tests/test_server
node server.js &
PID=$!
sleep 1
curl http://localhost:$TEST_PORT/echo|grep 'Welcome to SockJS'

kill $PID
