瀏覽代碼

Fix UnitTests.

release/3.x.x
Christian Kratky 4 年之前
父節點
當前提交
5056843611
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Tests/MQTTnet.Core.Tests/Server_Tests.cs

+ 2
- 2
Tests/MQTTnet.Core.Tests/Server_Tests.cs 查看文件

@@ -304,7 +304,7 @@ namespace MQTTnet.Tests
await c2.PublishAsync(messageBuilder.Build()).ConfigureAwait(false);
}

await Task.Delay(500).ConfigureAwait(false);
SpinWait.SpinUntil(() => receivedMessagesCount == 1000, 2000);

Assert.AreEqual(1000, receivedMessagesCount);
}
@@ -340,7 +340,7 @@ namespace MQTTnet.Tests
await c2.PublishAsync(messageBuilder.Build()).ConfigureAwait(false);
}

await Task.Delay(500).ConfigureAwait(false);
SpinWait.SpinUntil(() => receivedMessagesCount == 1000, 2000);

Assert.AreEqual(1000, receivedMessagesCount);
}


Loading…
取消
儲存