Skip to content

Commit

Permalink
Remove debugging stuff and reinstate teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jan 18, 2022
1 parent e0227e2 commit 140b5aa
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,18 @@ setup() {
ddev import-db --src=${DIR}/tests/testdata/db.sql.gz
}

#teardown() {
# ddev delete -Oy ${DDEV_SITENAME}
# ddev poweroff
# rm -rf ${TESTDIR}
#}
teardown() {
cd ${TESTDIR}
ddev delete -Oy ${DDEV_SITENAME}
rm -rf ${TESTDIR}
}

@test "basic installation" {
cd ${TESTDIR}
ddev list
ddev service get ${DIR}
ddev restart
status=$(ddev exec 'drush sapi-sl --format=json | jq -r .default_solr_server.status')
[ "${status}" = "enabled" ]
ddev list
sleep 10 # After a restart, the solr server may not be ready yet.
ddev drush search-api-solr:reload default_solr_server
ddev stop
}

0 comments on commit 140b5aa

Please sign in to comment.