Skip to content

Commit

Permalink
Fix flakiness for test/e2e/__tests__/restart.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 26, 2024
1 parent fd61523 commit 0f3ada8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/__tests__/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Restart command', () => {
});

it('should restart the language server', async () => {
const { document } = await openDocument('defaults/lint.css');
const { document } = await openDocument('defaults/restart.css');
const diagnostics1 = await waitForDiagnostics(document);

await commands.executeCommand('stylelint.restart');
Expand Down
1 change: 1 addition & 0 deletions test/e2e/workspace/defaults/restart.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a {}
4 changes: 4 additions & 0 deletions test/e2e/workspace/defaults/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const config = {
'plugin/foo-bar': true,
},
},
{
files: ['restart.css'],
rules: { 'block-no-empty': true },
},
],
};

Expand Down

0 comments on commit 0f3ada8

Please sign in to comment.