Skip to content

Commit 0bd3d76

Browse files
committed
Fix test suite
1 parent dbccc60 commit 0bd3d76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/suite/extension.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ suite('Extension Test Suite', () => {
9696
const pred = (uri: vscode.Uri) => !['download', 'gz', 'zip'].includes(path.extname(uri.fsPath));
9797
const exeExt = os.platform.toString() === 'win32' ? '.exe' : '';
9898
// Setting up watchers before actual tests start, to ensure we will got the created event
99-
filesCreated.set('wrapper', existsWorkspaceFile(`bin/haskell-language-server-wrapper*${exeExt}`, pred));
100-
filesCreated.set('server', existsWorkspaceFile(`bin/haskell-language-server-[1-9]*${exeExt}`, pred));
99+
filesCreated.set('wrapper', existsWorkspaceFile(`bin/.ghcup/bin/haskell-language-server-wrapper*${exeExt}`, pred));
100+
filesCreated.set('server', existsWorkspaceFile(`bin/.ghcup/bin/haskell-language-server-[1-9]*${exeExt}`, pred));
101101
filesCreated.set('log', existsWorkspaceFile('hls.log'));
102102
filesCreated.set('cache', existsWorkspaceFile('cache-test'));
103103
});
@@ -120,8 +120,8 @@ suite('Extension Test Suite', () => {
120120
await vscode.workspace.openTextDocument(getWorkspaceFile('Main.hs'));
121121
console.log('Testing wrapper');
122122
assert.ok(
123-
await withTimeout(30, filesCreated.get('wrapper')!),
124-
'The wrapper executable was not downloaded in 30 seconds'
123+
await withTimeout(60, filesCreated.get('wrapper')!),
124+
'The wrapper executable was not downloaded in 60 seconds'
125125
);
126126
console.log('Testing server');
127127
assert.ok(

0 commit comments

Comments
 (0)