Skip to content

Commit 869010a

Browse files
committed
Make sure to poweroff in test to avoid long-running processes
1 parent ddd5eac commit 869010a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@ jobs:
6565
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
6666

6767
- name: tests
68-
run: |
69-
bats tests
68+
run: bats tests
7069

tests/test.bats

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ setup() {
1313
}
1414

1515
teardown() {
16-
ddev delete -Oy ${DDEV_SITENAME}
17-
rm -rf ${TESTDIR}
16+
ddev delete -Oy ${DDEV_SITENAME}
17+
ddev poweroff
18+
rm -rf ${TESTDIR}
1819
}
1920

2021
@test "basic installation" {

0 commit comments

Comments
 (0)