Skip to content

Commit 592a8c8

Browse files
Fixed test case
1 parent 0b31d66 commit 592a8c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/suite/extension.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ suite('Extension Test Suite', () => {
103103
test('Server should inherit environment variables defined in the settings', async () => {
104104
await vscode.workspace.openTextDocument(getWorkspaceFile('Main.hs'));
105105
assert.ok(
106-
await withTimeout(30, existsWorkspaceFile('cache-test/*.hiedb')),
106+
// Folder will have already been created by this point, so it will not trigger watcher in existsWorkspaceFile()
107+
vscode.workspace.getWorkspaceFolder(getWorkspaceFile('cache-test')),
107108
'Server did not inherit XDG_CACHE_DIR from environment variables set in the settings'
108109
);
109110
});

0 commit comments

Comments
 (0)