File tree Expand file tree Collapse file tree
src/test/java/com/github/copilot/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -376,7 +376,8 @@ void testAbortSession() throws Exception {
376376
377377 // Send a message that will trigger a long-running shell command
378378 session .send (new MessageOptions ()
379- .setPrompt ("run the shell command 'sleep 100' (note this works on both bash and PowerShell)" )).get ();
379+ .setPrompt ("run the shell command 'sleep 100' (note this works on both bash and PowerShell)" ))
380+ .get ();
380381
381382 // Wait for the tool to start executing
382383 toolStartFuture .get (60 , TimeUnit .SECONDS );
@@ -392,8 +393,7 @@ void testAbortSession() throws Exception {
392393 assertFalse (messages .isEmpty ());
393394
394395 // Verify an abort event exists in messages
395- assertTrue (messages .stream ().anyMatch (m -> m instanceof AbortEvent ),
396- "Expected an abort event in messages" );
396+ assertTrue (messages .stream ().anyMatch (m -> m instanceof AbortEvent ), "Expected an abort event in messages" );
397397
398398 // We should be able to send another message
399399 AssistantMessageEvent answer = session .sendAndWait (new MessageOptions ().setPrompt ("What is 2+2?" )).get (60 ,
You can’t perform that action at this time.
0 commit comments