mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
Refactor code.
This commit is contained in:
@@ -123,7 +123,7 @@ namespace MQTTnet.Tests
|
||||
waitTask.GetAwaiter().GetResult();
|
||||
Assert.IsTrue(false, "Task was expected to transition to a canceled state.");
|
||||
}
|
||||
catch (OperationCanceledException ex)
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace MQTTnet.Tests
|
||||
|
||||
var replyReceived = false;
|
||||
|
||||
client1.UseApplicationMessageReceivedHandler(async c =>
|
||||
client1.UseApplicationMessageReceivedHandler(c =>
|
||||
{
|
||||
if (c.ApplicationMessage.Topic == "reply")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user