We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5287f60 commit cda0ff3Copy full SHA for cda0ff3
Tests/HiveMQtt.Test/HiveMQClient/ThreadSafeSubscribeUnsubscribeTest.cs
@@ -38,7 +38,7 @@ public async Task SubscribeUnsubscribe_InManyThreadsAsync()
38
client.OnMessageReceived += (_, args) => { };
39
_ = await client.SubscribeAsync("/test/#").ConfigureAwait(false);
40
41
- ConcurrentBag<string> exceptionMessages = [];
+ var exceptionMessages = new ConcurrentBag<string>();
42
var successCount = 0;
43
var tasks = new List<Task>();
44
@@ -80,7 +80,7 @@ public async Task SubscribeUnsubscribe_InManyThreadsAsync()
80
{
81
var errorMessage = $"Worker {workerId}, Iteration {i}: {e}";
82
exceptionMessages.Add(errorMessage);
83
- testOutputHelper.WriteLine(errorMessage);
+ this.testOutputHelper.WriteLine(errorMessage);
84
}
85
86
}));
0 commit comments