Skip to content

Commit 09d963e

Browse files
After each test, stop all running notebooks in case we had errors
1 parent ae30b79 commit 09d963e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

apps/client-e2e/src/tests/runner.class.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Logger } from '@idl/logger';
2-
import { Sleep } from '@idl/shared';
2+
import { IDL_COMMANDS, Sleep } from '@idl/shared';
33
import { GetWorkspaceConfig } from '@idl/vscode/config';
44
import { arch, platform } from 'os';
55
import { performance } from 'perf_hooks';
@@ -37,10 +37,13 @@ export class Runner {
3737
}
3838

3939
/**
40-
*
40+
* Close files and stop all notebook kernels
4141
*/
4242
async closeAll() {
4343
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
44+
await vscode.commands.executeCommand(
45+
IDL_COMMANDS.NOTEBOOKS.STOP_ALL_KERNELS
46+
);
4447
}
4548

4649
/**

0 commit comments

Comments
 (0)