cleanup
This commit is contained in:
parent
3548155c9d
commit
5d4d1fde7c
|
|
@ -302,7 +302,7 @@ async function runTests(watchOptions: WatchModeOptions, testServerConnection: Te
|
||||||
}) {
|
}) {
|
||||||
printConfiguration(watchOptions, options?.title);
|
printConfiguration(watchOptions, options?.title);
|
||||||
|
|
||||||
void readKeyPress((text: string, key: any) => {
|
const waitForDone = readKeyPress((text: string, key: any) => {
|
||||||
if (isInterrupt(text, key)) {
|
if (isInterrupt(text, key)) {
|
||||||
testServerConnection.stopTestsNoReply({});
|
testServerConnection.stopTestsNoReply({});
|
||||||
return 'done';
|
return 'done';
|
||||||
|
|
@ -318,7 +318,7 @@ async function runTests(watchOptions: WatchModeOptions, testServerConnection: Te
|
||||||
reuseContext: connectWsEndpoint ? true : undefined,
|
reuseContext: connectWsEndpoint ? true : undefined,
|
||||||
workers: connectWsEndpoint ? 1 : undefined,
|
workers: connectWsEndpoint ? 1 : undefined,
|
||||||
headed: connectWsEndpoint ? true : undefined,
|
headed: connectWsEndpoint ? true : undefined,
|
||||||
});
|
}).finally(() => waitForDone.cancel());
|
||||||
}
|
}
|
||||||
|
|
||||||
function readCommand() {
|
function readCommand() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue