mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 11:03:07 +08:00
Improve internal server connection management. (#1232)
This commit is contained in:
@@ -10,10 +10,8 @@ using MQTTnet.Server;
|
||||
namespace MQTTnet.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class Server_Status_Tests
|
||||
public sealed class Server_Status_Tests : BaseTestClass
|
||||
{
|
||||
public TestContext TestContext { get; set; }
|
||||
|
||||
[TestMethod]
|
||||
public async Task Show_Client_And_Session_Statistics()
|
||||
{
|
||||
@@ -143,7 +141,7 @@ namespace MQTTnet.Tests
|
||||
// At most once will send one packet to the client and the server will reply
|
||||
// with an additional ACK packet.
|
||||
await c1.PublishAsync("a", string.Empty, MqttQualityOfServiceLevel.AtLeastOnce);
|
||||
await Task.Delay(50);
|
||||
await Task.Delay(250);
|
||||
|
||||
var clientStatus = await server.GetClientStatusAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user