Skip to content

Commit 331bb26

Browse files
committed
Refactor message sending in CopilotSessionTest for improved readability
1 parent f3d8f8f commit 331bb26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/com/github/copilot/sdk/CopilotSessionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)