Skip to content

Commit

Permalink
test: ensure to fail if nothing was send
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Aug 20, 2024
1 parent 14f2e0a commit ff43001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jest/acceptance/language-server-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('Language Server Extension', () => {

await connection.sendRequest('initialized', {});

for (let i = 0; i < 1000; i++) {
for (let i = 0; i < 45; i++) {
console.debug('Waiting for diagnostics...');
if (diagnosticCount >= loop) {
break;
Expand All @@ -114,5 +114,7 @@ describe('Language Server Extension', () => {
}

cli.kill(9);

expect(diagnosticCount).toBeGreaterThan(0)
});
});

0 comments on commit ff43001

Please sign in to comment.