Refactor Retry to accept timeout of type time.Duration as opposed to type int, potentially enabling passing expected exit code was well. Alternatively, in https://github.com/deis/workflow-e2e/pull/237 adds RetryUntilResult which does both, so Retry might be able to just invoke this function for most of its logic...
From @vdice on June 24, 2016 18:5
Refactor Retry to accept
timeout
of typetime.Duration
as opposed to typeint
, potentially enabling passing expected exit code was well. Alternatively, in https://github.com/deis/workflow-e2e/pull/237 addsRetryUntilResult
which does both, soRetry
might be able to just invoke this function for most of its logic...Copied from original issue: deis/workflow-e2e#240