Merge pull request #59 from codex-storage/fix/wait-until

Fix re-evaluation of condition in `Time.WaitUntil`
This commit is contained in:
Ben Bierens 2023-09-21 10:59:01 +02:00 committed by GitHub
commit c569a795ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,11 @@ namespace DistTestCore.Helpers
{ {
try try
{ {
Time.WaitUntil(() => {
var c = constraint.Resolve(); var c = constraint.Resolve();
Time.WaitUntil(() => c.ApplyTo(actual()).IsSuccess); return c.ApplyTo(actual()).IsSuccess;
});
} }
catch (TimeoutException) catch (TimeoutException)
{ {