Skip to content

Commit

Permalink
Reload the servers
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiggar committed Nov 28, 2022
1 parent 942239c commit e9c681d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions integration-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ then
exit 1
fi

# We need to restart the server after adding new packages. Integration tests test
# against the dev environment, not the test one.
./scripts/run-fsharp-server "${PUBLISHED}" --restart=no
./scripts/devcontainer/_wait-until-apiserver-ready

######################
# Run playwright
######################
Expand All @@ -99,8 +94,15 @@ STATUS=0
COUNT=0

while [[ $STATUS == 0 ]]; do
# Reset the DB and restart the servers
# Note that we run against the dev server so that we can debug failures locally
./integration-tests/prep.sh
BASE_URL="$BASE_URL" BWD_BASE_URL="$BWD_BASE_URL" integration-tests/node_modules/.bin/playwright \
./scripts/run-fsharp-server "${PUBLISHED}" --restart=no
./scripts/devcontainer/_wait-until-apiserver-ready

BASE_URL="$BASE_URL" \
BWD_BASE_URL="$BWD_BASE_URL" \
integration-tests/node_modules/.bin/playwright \
test \
$DEBUG_MODE_FLAG \
--workers "$CONCURRENCY" \
Expand Down

0 comments on commit e9c681d

Please sign in to comment.