Skip to content

Commit aab1027

Browse files
committed
fix
1 parent 5b49842 commit aab1027

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/test/features/interpreterSelection.unit.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,7 @@ suite('Interpreter Selection - applyInitialEnvironmentSelection', () => {
873873
const globalDone = new Promise<void>((resolve) => {
874874
resolveGlobalDone = resolve;
875875
});
876-
const origSetEnvironments = mockEnvManagers.setEnvironments;
877-
origSetEnvironments.callsFake(async (...args: unknown[]) => {
876+
mockEnvManagers.setEnvironments.callsFake(async () => {
878877
resolveGlobalDone();
879878
});
880879

@@ -913,8 +912,6 @@ suite('Interpreter Selection - applyInitialEnvironmentSelection', () => {
913912
const globalDone = new Promise<void>((resolve) => {
914913
resolveGlobalDone = resolve;
915914
});
916-
917-
// Make setEnvironments throw — simulating a crash in global scope
918915
mockEnvManagers.setEnvironments.callsFake(async () => {
919916
resolveGlobalDone();
920917
throw new Error('Simulated global scope crash');

0 commit comments

Comments
 (0)