Skip to content

Commit

Permalink
fix(serving): Fixed error message when timeout happens during wait fo…
Browse files Browse the repository at this point in the history
…r timeout (#215)
  • Loading branch information
rhuss authored and knative-prow-robot committed Jul 1, 2019
1 parent 43b37a6 commit 9400919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wait/wait_for_ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (w *waitForReadyConfig) Wait(name string, timeout time.Duration, out io.Wri
}
floatingTimeout = floatingTimeout - time.Since(start)
if timeoutReached || floatingTimeout < 0 {
return fmt.Errorf("timeout: %s '%s' not ready after %d seconds", w.kind, name, timeout)
return fmt.Errorf("timeout: %s '%s' not ready after %d seconds", w.kind, name, int(timeout/time.Second))
}

if retry {
Expand Down

0 comments on commit 9400919

Please sign in to comment.