Skip to content

Commit

Permalink
fix(ci): sleep before running protrator tests
Browse files Browse the repository at this point in the history
It looks like our protractor tests often fail to start on Travis.  This
commit should give them enough time to complete a build before starting
the test suite.
  • Loading branch information
jniles committed Feb 24, 2018
1 parent a7e2cdd commit 3a7d06f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sh/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "[test] Spawned node process $NODE_PID."

# make sure we have enough time for the server to start
echo "[test] Sleeping for $TIMEOUT seconds."
sleep $TIMEOUT
sleep "$TIMEOUT"

echo "[test] running tests using mocha"

Expand Down
3 changes: 3 additions & 0 deletions sh/test-ends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ NODE_PID=$!

echo "[test] Spawned node process $NODE_PID."

echo "[test] Sleeping for $TIMEOUT seconds."
sleep "$TIMEOUT"

echo "[test] Running tests using protractor."
../node_modules/.bin/protractor ../protractor.conf.js

Expand Down

0 comments on commit 3a7d06f

Please sign in to comment.