Skip to content

Commit e34f4ed

Browse files
robertbrignullkoesie10
authored andcommitted
Only start server when loading a scenario
1 parent 7c1b6e2 commit e34f4ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/common/mock-gh-api/mock-gh-api-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class MockGitHubApiServer extends DisposableObject {
3030
return;
3131
}
3232

33-
this.server.listen({ onUnhandledRequest: "bypass" });
3433
this._isListening = true;
3534
}
3635

@@ -55,6 +54,7 @@ export class MockGitHubApiServer extends DisposableObject {
5554
const handlers = await createRequestHandlers(scenarioPath);
5655
this.server.resetHandlers();
5756
this.server.use(...handlers);
57+
this.server.listen({ onUnhandledRequest: "bypass" });
5858
}
5959

6060
public async saveScenario(

0 commit comments

Comments
 (0)