Skip to content

Commit 7b8b801

Browse files
committed
fix broken call to Eventually
1 parent ba35cc6 commit 7b8b801

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gexec/session.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ will wait for the command to exit then return the entirety of Out's contents.
142142
Wait uses eventually under the hood and accepts the same timeout/polling intervals that eventually does.
143143
*/
144144
func (s *Session) Wait(timeout ...interface{}) *Session {
145-
EventuallyWithOffset(1, s, timeout...).Should(Exit())
145+
args := []any{s}
146+
args = append(args, timeout...)
147+
EventuallyWithOffset(1, args...).Should(Exit())
146148
return s
147149
}
148150

0 commit comments

Comments
 (0)