Skip to content

Commit f26d64e

Browse files
committed
test: wait for killAllProcesses() to complete before proceeding
1 parent a95928d commit f26d64e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/legacy-cli/e2e/tests/misc/fallback.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ export default function () {
1717
assert.strictEqual(response.status, 200);
1818
assert.match(await response.text(), /<app-root><\/app-root>/);
1919
})
20-
.then(
21-
() => killAllProcesses(),
22-
(err) => {
23-
killAllProcesses();
24-
throw err;
25-
},
26-
)
20+
.finally(() => killAllProcesses())
2721
// should correctly fallback to a changed index
2822
.then(() => moveFile('src/index.html', 'src/not-index.html'))
2923
.then(() =>

0 commit comments

Comments
 (0)