Skip to content

Commit 3a8c2a5

Browse files
Fix abort test to use non-blocking send()
1 parent c5f549e commit 3a8c2a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nodejs/test/e2e/session.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ describe("Sessions", async () => {
230230
it("should abort a session", async () => {
231231
const session = await client.createSession();
232232

233-
// Send a message that will take some time to process
234-
await session.sendAndWait({ prompt: "What is 1+1?" });
233+
// Send a message (don't wait - we want to abort while it's in progress)
234+
await session.send({ prompt: "What is 1+1?" });
235235

236236
// Abort the session immediately
237237
await session.abort();

0 commit comments

Comments
 (0)