We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f549e commit 3a8c2a5Copy full SHA for 3a8c2a5
1 file changed
nodejs/test/e2e/session.test.ts
@@ -230,8 +230,8 @@ describe("Sessions", async () => {
230
it("should abort a session", async () => {
231
const session = await client.createSession();
232
233
- // Send a message that will take some time to process
234
- await session.sendAndWait({ prompt: "What is 1+1?" });
+ // Send a message (don't wait - we want to abort while it's in progress)
+ await session.send({ prompt: "What is 1+1?" });
235
236
// Abort the session immediately
237
await session.abort();
0 commit comments