We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8057b56 commit 75ed1b4Copy full SHA for 75ed1b4
1 file changed
dotnet/test/SessionTests.cs
@@ -336,8 +336,10 @@ public async Task Should_Receive_Session_Events()
336
// Events must be dispatched serially — never more than one handler invocation at a time.
337
Assert.Equal(1, maxConcurrent);
338
339
- // Verify the assistant response contains the expected answer
340
- var assistantMessage = await TestHelper.GetFinalAssistantMessageAsync(session);
+ // Verify the assistant response contains the expected answer.
+ // session.idle is ephemeral and not in getEvents(), but we already
341
+ // confirmed idle via the live event handler above.
342
+ var assistantMessage = await TestHelper.GetFinalAssistantMessageAsync(session, alreadyIdle: true);
343
Assert.NotNull(assistantMessage);
344
Assert.Contains("300", assistantMessage!.Data.Content);
345
0 commit comments