Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -897,15 +897,6 @@ void testCodeExecutionInterrupt() throws InterruptedException, ExecutionExceptio
javaResult.getId(),
javaResult.getError() != null ? javaResult.getError().getName() : "none");

// Test 3: Test interrupting non-existent execution
logger.info("Testing interrupt of non-existent execution");

String fakeExecutionId = "fake-execution-" + System.currentTimeMillis();
assertThrows(
SandboxApiException.class,
() -> codeInterpreter.codes().interrupt(fakeExecutionId),
"Interrupting non-existent execution should throw exception");

// Test 4: Quick execution that completes before interrupt
logger.info("Testing interrupt of already completed execution");

Expand All @@ -931,4 +922,4 @@ void testCodeExecutionInterrupt() throws InterruptedException, ExecutionExceptio

logger.info("Code execution interrupt tests completed");
}
}
}
Loading
Loading