Skip to content

Commit

Permalink
Show globalTimeout as seconds in debug output
Browse files Browse the repository at this point in the history
Probably won't need the nanosecond precision there.
  • Loading branch information
simonbaird committed Dec 19, 2024
1 parent 9725ae4 commit 68e90c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root/root_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewRootCmd() *cobra.Command {
var cancel context.CancelFunc
if globalTimeout > 0 {
ctx, cancel = context.WithTimeout(ctx, globalTimeout)
log.Debugf("globalTimeout is %d", globalTimeout)
log.Debugf("globalTimeout is %d seconds", globalTimeout/time.Second)
} else {
log.Debugf("globalTimeout is %d, no timeout used", globalTimeout)
}
Expand Down
2 changes: 1 addition & 1 deletion features/task_validate_image.feature
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Feature: Verify Enterprise Contract Tekton Tasks
| IGNORE_REKOR | true |
| TIMEOUT | 666s |
Then the task should succeed
And the task logs for step "debug-log" should contain "globalTimeout is 666000000000"
And the task logs for step "debug-log" should contain "globalTimeout is 666 seconds"

Scenario: SSL_CERT_DIR environment variable is customized
Given a working namespace
Expand Down

0 comments on commit 68e90c0

Please sign in to comment.