Skip to content

Commit 3be362f

Browse files
committed
Avoid reusing browser launchers, to improve launcher reliability on OSX
1 parent b28b9cd commit 3be362f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/browsers.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ import { promisify } from 'util';
55

66
export { BrowserInstance };
77

8-
let launcher: Launch | undefined;
98
async function getLauncher(configPath: string) {
10-
if (!launcher) {
11-
launcher = await promisify(getBrowserLauncher)(path.join(configPath, 'browsers.json'));
12-
}
13-
14-
return launcher;
9+
return await promisify(getBrowserLauncher)(path.join(configPath, 'browsers.json'));
1510
}
1611

1712
export const getAvailableBrowsers = async (configPath: string) => {

0 commit comments

Comments
 (0)