mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-10 11:06:42 +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
|
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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user