From ff430016999dfdf0cde71c7c38b9ad19e9a37f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Scha=CC=88fer?= <101886095+PeterSchafer@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:27:39 +0200 Subject: [PATCH] test: ensure to fail if nothing was send --- test/jest/acceptance/language-server-extension.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/jest/acceptance/language-server-extension.spec.ts b/test/jest/acceptance/language-server-extension.spec.ts index 0364668967..59336ede07 100644 --- a/test/jest/acceptance/language-server-extension.spec.ts +++ b/test/jest/acceptance/language-server-extension.spec.ts @@ -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; @@ -114,5 +114,7 @@ describe('Language Server Extension', () => { } cli.kill(9); + + expect(diagnosticCount).toBeGreaterThan(0) }); });