mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-06-06 16:39:33 +00:00
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…
x
Reference in New Issue
Block a user