Skip to content

Commit 40a66d2

Browse files
authored
Increase timeout for Github hosted broker (#121)
1 parent d32fc96 commit 40a66d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/HiveMQtt.Test/HiveMQClient/LWTTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task Last_Will_With_Properties_Async()
6363
Assert.Equal(SubAckReasonCode.GrantedQoS1, result.Subscriptions[0].SubscribeReasonCode);
6464
Assert.Equal("last/will", result.Subscriptions[0].TopicFilter.Topic);
6565

66-
// Setup & Connect the client with LWT
66+
// Setup & Connect another client with a LWT
6767
var options = new HiveMQClientOptions
6868
{
6969
LastWillAndTestament = new LastWillAndTestament("last/will", "last will message"),
@@ -87,7 +87,7 @@ public async Task Last_Will_With_Properties_Async()
8787
var disconnectResult = await client.DisconnectAsync(disconnectOptions).ConfigureAwait(false);
8888

8989
// Wait until the LWT message is received
90-
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(10)).ConfigureAwait(false);
90+
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(25)).ConfigureAwait(false);
9191
Assert.True(taskResult);
9292
}
9393
}

Tests/HiveMQtt.Test/HiveMQClient/LastWillAndTestamentBuilderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public async Task Last_Will_With_Properties_Async()
9898
var disconnectResult = await client.DisconnectAsync(disconnectOptions).ConfigureAwait(false);
9999

100100
// Wait until the LWT message is received
101-
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(10)).ConfigureAwait(false);
101+
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(25)).ConfigureAwait(false);
102102
Assert.True(taskResult);
103103
}
104104
}

0 commit comments

Comments
 (0)