codex-storage / cs-codex-dist-tests

Distributed System Tests for Nim-Codex
4 stars 4 forks source link

Fix re-evaluation of condition in `Time.WaitUntil` #59

Closed emizzle closed 1 year ago

emizzle commented 1 year ago

For example, seller.Marketplace.GetBalance() is captured once on call, and then is compared to a continually updated sellerWithFailures.Marketplace.GetBalance.

Update RetryAssert such that var c = constraint.Resolve(); is executed inside of the Time.WaitUntil instead of outside, so it is continually reevaluated.