mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
Fix unit tests
This commit is contained in:
@@ -621,7 +621,7 @@ namespace MQTTnet.Tests.Clients.ManagedMqttClient
|
|||||||
public async Task Unsubscribe_Does_Not_Hang_On_Server_Stop()
|
public async Task Unsubscribe_Does_Not_Hang_On_Server_Stop()
|
||||||
{
|
{
|
||||||
var timeout = TimeSpan.FromSeconds(2);
|
var timeout = TimeSpan.FromSeconds(2);
|
||||||
var testTimeout = timeout * 2;
|
var testTimeout = TimeSpan.FromSeconds(timeout.TotalSeconds * 2);
|
||||||
const string topic = "test_topic_2";
|
const string topic = "test_topic_2";
|
||||||
using (var testEnvironment = CreateTestEnvironment())
|
using (var testEnvironment = CreateTestEnvironment())
|
||||||
using (var managedClient = await CreateManagedClientAsync(testEnvironment, timeout: timeout))
|
using (var managedClient = await CreateManagedClientAsync(testEnvironment, timeout: timeout))
|
||||||
@@ -670,7 +670,7 @@ namespace MQTTnet.Tests.Clients.ManagedMqttClient
|
|||||||
public async Task Publish_Does_Not_Hang_On_Server_Error()
|
public async Task Publish_Does_Not_Hang_On_Server_Error()
|
||||||
{
|
{
|
||||||
var timeout = TimeSpan.FromSeconds(2);
|
var timeout = TimeSpan.FromSeconds(2);
|
||||||
var testTimeout = timeout * 2;
|
var testTimeout = TimeSpan.FromSeconds(timeout.TotalSeconds * 2);
|
||||||
|
|
||||||
const string topic = "test_topic_42";
|
const string topic = "test_topic_42";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user