Skip to content

Commit cda0ff3

Browse files
committed
fix: use no .net8 language feature
1 parent 5287f60 commit cda0ff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/HiveMQtt.Test/HiveMQClient/ThreadSafeSubscribeUnsubscribeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task SubscribeUnsubscribe_InManyThreadsAsync()
3838
client.OnMessageReceived += (_, args) => { };
3939
_ = await client.SubscribeAsync("/test/#").ConfigureAwait(false);
4040

41-
ConcurrentBag<string> exceptionMessages = [];
41+
var exceptionMessages = new ConcurrentBag<string>();
4242
var successCount = 0;
4343
var tasks = new List<Task>();
4444

@@ -80,7 +80,7 @@ public async Task SubscribeUnsubscribe_InManyThreadsAsync()
8080
{
8181
var errorMessage = $"Worker {workerId}, Iteration {i}: {e}";
8282
exceptionMessages.Add(errorMessage);
83-
testOutputHelper.WriteLine(errorMessage);
83+
this.testOutputHelper.WriteLine(errorMessage);
8484
}
8585
}
8686
}));

0 commit comments

Comments
 (0)