mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Debugging duplicated client id issue
This commit is contained in:
@@ -6,6 +6,7 @@ using MQTTnet.Tests.Mockups;
|
||||
using MQTTnet.Client;
|
||||
using MQTTnet.Protocol;
|
||||
using MQTTnet.Server;
|
||||
using System.Threading;
|
||||
|
||||
namespace MQTTnet.Tests
|
||||
{
|
||||
@@ -55,10 +56,10 @@ namespace MQTTnet.Tests
|
||||
|
||||
var c1 = await testEnvironment.ConnectClientAsync(new MqttClientOptionsBuilder().WithClientId("client1"));
|
||||
|
||||
await Task.Delay(500);
|
||||
await Task.Delay(1000);
|
||||
|
||||
var clientStatus = await server.GetClientStatusAsync();
|
||||
|
||||
|
||||
Assert.AreEqual(1, clientStatus.Count);
|
||||
|
||||
Assert.IsTrue(clientStatus.Any(s => s.ClientId == "client1"));
|
||||
|
||||
Reference in New Issue
Block a user