Skip to content

Commit 1a748f4

Browse files
committed
* Increase concurrency in TestConcurrentChannelOperationsAsync
1 parent a6cfa91 commit 1a748f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/Test/Integration/TestConcurrentAccessWithSharedConnection.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ private async Task TestConcurrentChannelOperationsAsync(Func<IConnection, Task>
7070
var tasks = new List<Task>();
7171
for (int i = 0; i < _processorCount; i++)
7272
{
73-
tasks.Add(Task.Run(async () =>
73+
tasks.Add(Task.Run(() =>
7474
{
75+
var subTasks = new List<Task>();
7576
for (int j = 0; j < iterations; j++)
7677
{
77-
await action(_conn);
78+
subTasks.Add(action(_conn));
7879
}
80+
return Task.WhenAll(subTasks);
7981
}));
8082
}
8183

0 commit comments

Comments
 (0)