From 473f9c31b1b178c1dd651ef6a83ddc0c2ed90d27 Mon Sep 17 00:00:00 2001 From: christian <6939810+chkr1011@users.noreply.github.com> Date: Sun, 12 May 2024 11:37:33 +0200 Subject: [PATCH] Fix unit tests --- .../Clients/ManagedMqttClient/ManagedMqttClient_Tests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/MQTTnet.Tests/Clients/ManagedMqttClient/ManagedMqttClient_Tests.cs b/Source/MQTTnet.Tests/Clients/ManagedMqttClient/ManagedMqttClient_Tests.cs index dd056471d..1e9bc60a1 100644 --- a/Source/MQTTnet.Tests/Clients/ManagedMqttClient/ManagedMqttClient_Tests.cs +++ b/Source/MQTTnet.Tests/Clients/ManagedMqttClient/ManagedMqttClient_Tests.cs @@ -621,7 +621,7 @@ public async Task Subscribe_Does_Not_Hang_On_Server_Stop() public async Task Unsubscribe_Does_Not_Hang_On_Server_Stop() { var timeout = TimeSpan.FromSeconds(2); - var testTimeout = timeout * 2; + var testTimeout = TimeSpan.FromSeconds(timeout.TotalSeconds * 2); const string topic = "test_topic_2"; using (var testEnvironment = CreateTestEnvironment()) using (var managedClient = await CreateManagedClientAsync(testEnvironment, timeout: timeout)) @@ -670,7 +670,7 @@ public async Task Unsubscribe_Does_Not_Hang_On_Server_Stop() public async Task Publish_Does_Not_Hang_On_Server_Error() { var timeout = TimeSpan.FromSeconds(2); - var testTimeout = timeout * 2; + var testTimeout = TimeSpan.FromSeconds(timeout.TotalSeconds * 2); const string topic = "test_topic_42";