diff --git a/Tests/MQTTnet.Core.Tests/MqttServerTests.cs b/Tests/MQTTnet.Core.Tests/MqttServerTests.cs index 44d489b..86ff600 100644 --- a/Tests/MQTTnet.Core.Tests/MqttServerTests.cs +++ b/Tests/MQTTnet.Core.Tests/MqttServerTests.cs @@ -232,7 +232,7 @@ namespace MQTTnet.Core.Tests }; //make shure the retainedMessageManagerreceived the package - while (retainMessagemanager.GetMessages(subscribe).Any()) + while (!retainMessagemanager.GetMessages(subscribe).Any()) { await Task.Delay(TimeSpan.FromMilliseconds(10)); }