mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-20 21:04:13 +00:00
Test server port changed to 3001
This commit is contained in:
parent
431622ce14
commit
803a45b47f
2 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ exports.config = {
|
|||
|
||||
// A base URL for your application under test. Calls to protractor.get()
|
||||
// with relative paths will be prepended with this.
|
||||
baseUrl: 'http://localhost:3000',
|
||||
baseUrl: 'http://localhost:3001',
|
||||
|
||||
// Options to be passed to Jasmine-node.
|
||||
jasmineNodeOpts: {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
# Configuration
|
||||
TEST_DB=habitrpg_test
|
||||
TEST_DB_URI="mongodb://localhost/$TEST_DB"
|
||||
TEST_SERVER_PORT=3001
|
||||
|
||||
# Build assets
|
||||
grunt build:dev
|
||||
|
|
@ -11,7 +12,7 @@ echo "Recreating test database"
|
|||
mongo "$TEST_DB" --eval "db.dropDatabase()"
|
||||
./node_modules/protractor/bin/webdriver-manager update
|
||||
./node_modules/protractor/bin/webdriver-manager start > /dev/null &
|
||||
NODE_DB_URI="$TEST_DB_URI" node ./src/server.js > /dev/null &
|
||||
NODE_DB_URI="$TEST_DB_URI" PORT=$TEST_SERVER_PORT node ./src/server.js > /dev/null &
|
||||
NODE_PID=$!
|
||||
trap "kill $NODE_PID && curl http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer" EXIT
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue