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
1 changed files with 5 additions and 2 deletions

View File

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