Skip to content

Commit 1c4444c

Browse files
committed
test(editor): wait longer for "detects diagnostics on run" fixture (#15156)
Another task is flaky `changing oxc.typeAware will revalidate the tsgolint diagnostics `, but not sure if this is related with oxc-project/tsgolint#349
1 parent 69babde commit 1c4444c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editors/vscode/tests/e2e_server.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ suite('E2E Diagnostics', () => {
7474
testSingleFolderMode('detects diagnostics on run', async () =>
7575
{
7676
await loadFixture('lint_on_run');
77-
await sleep(250);
77+
await sleep(500);
7878
const diagnostics = await getDiagnosticsWithoutClose(`onType.ts`);
7979
strictEqual(diagnostics.length, 0);
8080

@@ -274,7 +274,7 @@ suite('E2E Diagnostics', () => {
274274
await waitForDiagnosticChange();
275275

276276
const secondDiagnostics = await getDiagnostics('index.ts');
277-
assert(secondDiagnostics.length != 0);
277+
strictEqual(secondDiagnostics.length, 1);
278278
});
279279

280280
test('formats code with `oxc.fmt.experimental`', async () => {

0 commit comments

Comments
 (0)