Expose proper connect result in clients Disconnected event (#1728)

This commit is contained in:
Christian
2023-05-06 12:49:41 +02:00
committed by GitHub
parent 99f4f46062
commit 449624fd72
8 changed files with 206 additions and 103 deletions
@@ -127,6 +127,8 @@ namespace MQTTnet.Tests.Clients.MqttClient
// Perform a clean disconnect.
await client.DisconnectAsync(disconnectOptions);
await LongTestDelay();
Assert.IsNotNull(eventArgs);
Assert.AreEqual(MqttDisconnectReasonCode.MessageRateTooHigh, eventArgs.ReasonCode);
}