mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 11:03:07 +08:00
Improve test environment.
This commit is contained in:
@@ -66,10 +66,13 @@ namespace MQTTnet.Tests.Mockups
|
||||
|
||||
public IMqttClient CreateClient()
|
||||
{
|
||||
var client = _mqttFactory.CreateMqttClient(ClientLogger);
|
||||
_clients.Add(client);
|
||||
lock (_clients)
|
||||
{
|
||||
var client = _mqttFactory.CreateMqttClient(ClientLogger);
|
||||
_clients.Add(client);
|
||||
|
||||
return new TestClientWrapper(client, TestContext);
|
||||
return new TestClientWrapper(client, TestContext);
|
||||
}
|
||||
}
|
||||
|
||||
public Task<IMqttServer> StartServerAsync()
|
||||
|
||||
Reference in New Issue
Block a user