chore(test-runner): correct warning instruction for port reuse (#12479)

This commit is contained in:
Basarat Ali Syed 2022-03-04 20:14:49 +11:00 committed by GitHub
parent 279e579097
commit dd83ece3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ export class WebServer {
if (isAlreadyAvailable) { if (isAlreadyAvailable) {
if (this.config.reuseExistingServer) if (this.config.reuseExistingServer)
return; return;
throw new Error(`${this.config.url ?? `http://localhost:${this.config.port}`} is already used, make sure that nothing is running on the port/url or set strict:false in config.webServer.`); throw new Error(`${this.config.url ?? `http://localhost:${this.config.port}`} is already used, make sure that nothing is running on the port/url or set reuseExistingServer:true in config.webServer.`);
} }
const { launchedProcess, kill } = await launchProcess({ const { launchedProcess, kill } = await launchProcess({