Skip to content

Commit

Permalink
Increase timeout for Github hosted broker (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored Jan 23, 2024
1 parent d32fc96 commit 40a66d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/HiveMQtt.Test/HiveMQClient/LWTTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public async Task Last_Will_With_Properties_Async()
Assert.Equal(SubAckReasonCode.GrantedQoS1, result.Subscriptions[0].SubscribeReasonCode);
Assert.Equal("last/will", result.Subscriptions[0].TopicFilter.Topic);

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

// Wait until the LWT message is received
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(10)).ConfigureAwait(false);
var taskResult = await taskLWTReceived.Task.WaitAsync(TimeSpan.FromSeconds(25)).ConfigureAwait(false);
Assert.True(taskResult);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task Last_Will_With_Properties_Async()
var disconnectResult = await client.DisconnectAsync(disconnectOptions).ConfigureAwait(false);

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

0 comments on commit 40a66d2

Please sign in to comment.