Commit 160d56d5 authored by Nick Craver's avatar Nick Craver

Heartbeat tests: just make sure 1 happened

parent d86aa4ca
...@@ -146,7 +146,7 @@ public async Task TestManaulHeartbeat() ...@@ -146,7 +146,7 @@ public async Task TestManaulHeartbeat()
var after = muxer.OperationCount; var after = muxer.OperationCount;
Assert.True(after >= before + 4, $"after: {after}, before: {before}"); Assert.True(after >= before + 2, $"after: {after}, before: {before}");
} }
} }
...@@ -355,7 +355,7 @@ public async Task TestAutomaticHeartbeat() ...@@ -355,7 +355,7 @@ public async Task TestAutomaticHeartbeat()
await Task.Delay(8000).ForAwait(); await Task.Delay(8000).ForAwait();
var after = innerMuxer.OperationCount; var after = innerMuxer.OperationCount;
Assert.True(after >= before + 4, $"after: {after}, before: {before}"); Assert.True(after >= before + 2, $"after: {after}, before: {before}");
} }
} }
finally finally
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment