mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 02:53:06 +08:00
Improve test environment.
This commit is contained in:
@@ -646,11 +646,11 @@ namespace MQTTnet.Tests
|
||||
{
|
||||
// Clear retained message.
|
||||
await client.PublishAsync(new MqttApplicationMessageBuilder().WithTopic("r" + i2)
|
||||
.WithPayload(new byte[0]).WithRetainFlag().Build());
|
||||
.WithPayload(new byte[0]).WithRetainFlag().WithQualityOfServiceLevel(1).Build());
|
||||
|
||||
// Set retained message.
|
||||
await client.PublishAsync(new MqttApplicationMessageBuilder().WithTopic("r" + i2)
|
||||
.WithPayload("value").WithRetainFlag().Build());
|
||||
.WithPayload("value").WithRetainFlag().WithQualityOfServiceLevel(1).Build());
|
||||
|
||||
await client.DisconnectAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user