Skip to content

Commit 6f6595e

Browse files
committed
bug: assert.rejects returns a rejected Promise
that means that we have to wait for the failure to fully resolve to not propagate down the rest of the test suite.
1 parent ec3355d commit 6f6595e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unitTest/tools.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ suite('Tools tests', () => {
1616

1717
test('shellTask returns rejected promise', async () => {
1818
const name = 'pip: fortls';
19-
assert.rejects(shellTask('python3', ['-m', 'pip', 'install', 'fortls2'], name));
19+
await assert.rejects(shellTask('python3', ['-m', 'pip', 'install', 'fortls2'], name));
2020
});
2121

2222
test('spawnAsPromise correct stdout, stderr output exit code 0', async () => {

0 commit comments

Comments
 (0)