Commit 93872473 authored by Matthew Sykes's avatar Matthew Sykes
Browse files

[FAB-10221] Use EventuallyWithOffset in execute



When the assertions in execute fail, they're attributed to execute
instead of the caller. That makes debugging more difficult than it
should be.

Change-Id: I0a0f145247b444844b96e0f5540c062931c60633
Signed-off-by: default avatarMatthew Sykes <sykesmat@us.ibm.com>
parent c6d0e6c9
......@@ -85,6 +85,6 @@ func (c *Components) Zookeeper(id int, network *docker.Network) *runner.Zookeepe
func execute(r ifrit.Runner) {
p := ifrit.Invoke(r)
Eventually(p.Ready(), 2*time.Second).Should(BeClosed())
Eventually(p.Wait(), 45*time.Second).Should(Receive(BeNil()))
EventuallyWithOffset(1, p.Ready(), 2*time.Second).Should(BeClosed())
EventuallyWithOffset(1, p.Wait(), 45*time.Second).Should(Receive(BeNil()))
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment