Skip to content

Commit 9fb5508

Browse files
Increase bounded channel capacity in HangReproTest to avoid runtime issues
1 parent 96a0937 commit 9fb5508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Open.ChannelExtensions.Tests/HangReproTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static async Task MultipleBatchReadersDoNotHang()
6666
await GetSource()
6767
// Use bounded channel to avoid .NET runtime bug with unbounded channels.
6868
// See: https://github.com/dotnet/runtime/issues/123544
69-
.ToChannel(capacity: 10000, singleReader: true)
69+
.ToChannel(capacity: 10_000_000, singleReader: true)
7070
.Batch(Random.Shared.Next(25, 50))
7171
// WithTimeout is required to flush partial batches when source completes.
7272
.WithTimeout(TimeSpan.FromMilliseconds(100))

0 commit comments

Comments
 (0)