Skip to content

Commit a76c628

Browse files
committed
Fix tests
1 parent 84c5371 commit a76c628

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/suite/extension.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ async function deleteFiles(dir: vscode.Uri, keepDirs: vscode.Uri[], pred?: (file
103103
}
104104
}
105105

106-
const ghcupBaseDir = `bin/${process.platform === 'win32' ? 'ghcup' : '.ghcup'}`;
107-
108106
suite('Extension Test Suite', () => {
109107
const disposables: vscode.Disposable[] = [];
110108
const filesCreated: Map<string, Promise<vscode.Uri>> = new Map();
@@ -143,8 +141,8 @@ suite('Extension Test Suite', () => {
143141

144142
const pred = (uri: vscode.Uri) => !['download', 'gz', 'zip'].includes(path.extname(uri.fsPath));
145143
// Setting up watchers before actual tests start, to ensure we will got the created event
146-
filesCreated.set('wrapper', existsWorkspaceFile(`${ghcupBaseDir}/bin/haskell-language-server-wrapper*`, pred));
147-
filesCreated.set('server', existsWorkspaceFile(`${ghcupBaseDir}/bin/haskell-language-server-[1-9]*`, pred));
144+
filesCreated.set('wrapper', existsWorkspaceFile(`bin/hls-*/haskell-language-server-wrapper*`, pred));
145+
filesCreated.set('server', existsWorkspaceFile(`bin/hls-*/haskell-language-server-[1-9]*`, pred));
148146
filesCreated.set('log', existsWorkspaceFile('hls.log'));
149147
filesCreated.set('cache', existsWorkspaceFile('cache-test'));
150148
});

0 commit comments

Comments
 (0)