Merge pull request #59 from codex-storage/fix/wait-until
Fix re-evaluation of condition in `Time.WaitUntil`
This commit is contained in:
commit
c569a795ce
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue