Skip to content

Commit 9387247

Browse files
committed
[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: Matthew Sykes <sykesmat@us.ibm.com>
1 parent c6d0e6c commit 9387247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/world/components.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ func (c *Components) Zookeeper(id int, network *docker.Network) *runner.Zookeepe
8585

8686
func execute(r ifrit.Runner) {
8787
p := ifrit.Invoke(r)
88-
Eventually(p.Ready(), 2*time.Second).Should(BeClosed())
89-
Eventually(p.Wait(), 45*time.Second).Should(Receive(BeNil()))
88+
EventuallyWithOffset(1, p.Ready(), 2*time.Second).Should(BeClosed())
89+
EventuallyWithOffset(1, p.Wait(), 45*time.Second).Should(Receive(BeNil()))
9090
}

0 commit comments

Comments
 (0)