Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,20 @@ public async Task InputWaiter_WaitForInputAsync_CanBeSignaledMultipleTimesSequen
await this._waiter.WaitForInputAsync(TimeSpan.FromSeconds(1));
}

[Fact]
[Fact(Skip = "Flaky in merge_group; see https://github.com/microsoft/agent-framework/issues/7360")]
public async Task InputWaiter_WaitForInputAsync_CompletesWhenTimeoutExpiresAsync()
{
// Verify that a finite timeout releases the block even without a signal.
// We only assert that it *does* complete (within a generous outer bound);
// we intentionally do not assert that it stays blocked until the timeout,
// because that would re-introduce the same wall-clock flakiness
// described in BlocksUntilSignaledAsync (see comment on that test).
//
// The generous outer bound is itself not generous enough: on the loaded
// net472/windows-latest leg, thread pool starvation can delay the 300ms
// continuation past the 5s guard, so Task.Delay wins the race and the
// identity assertion below fails. Quarantined until the assertion is
// rewritten to not depend on scheduling latency.
Task waitTask = this._waiter.WaitForInputAsync(TimeSpan.FromMilliseconds(300));

Task completed = await Task.WhenAny(waitTask, Task.Delay(TimeSpan.FromSeconds(5)));
Expand Down
Loading