Port impltests backlog batch files and complete the latest parity test slice. Update tracker/report databases so verified status matches the passing batch evidence.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace ZB.MOM.NatsNet.Server.Tests.ImplBacklog;
|
||||
|
||||
internal static class ImpltestsBacklogAssertions
|
||||
{
|
||||
public static void SpinWaitUntil(Func<bool> condition, TimeSpan timeout, TimeSpan? poll = null)
|
||||
{
|
||||
var deadline = DateTime.UtcNow + timeout;
|
||||
var interval = poll ?? TimeSpan.FromMilliseconds(10);
|
||||
while (DateTime.UtcNow < deadline)
|
||||
{
|
||||
if (condition())
|
||||
return;
|
||||
Thread.Sleep(interval);
|
||||
}
|
||||
throw new TimeoutException("Condition was not satisfied within the timeout.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user