Skip to content

Commit

Permalink
fix broken call to Eventually
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Oct 26, 2022
1 parent ba35cc6 commit 7b8b801
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gexec/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ will wait for the command to exit then return the entirety of Out's contents.
Wait uses eventually under the hood and accepts the same timeout/polling intervals that eventually does.
*/
func (s *Session) Wait(timeout ...interface{}) *Session {
EventuallyWithOffset(1, s, timeout...).Should(Exit())
args := []any{s}
args = append(args, timeout...)
EventuallyWithOffset(1, args...).Should(Exit())
return s
}

Expand Down

0 comments on commit 7b8b801

Please sign in to comment.