Skip to content

Commit 08a2416

Browse files
committed
format cleanup
1 parent 211504d commit 08a2416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dependency/vault_common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ func TestVaultRenewDuration(t *testing.T) {
2222
renewable := Secret{LeaseDuration: 100, Renewable: true}
2323
renewableDur, _ := leaseCheckWait(&renewable)
2424
if renewableDur < 16*time.Second || renewableDur >= 34*time.Second {
25-
t.Fatalf("renewable duration is not within 1/6 to 1/3 of lease duration: %s", renewableDur)
25+
t.Fatalf("renewable duration is not within 1/6 to 1/3 of lease duration: %f", renewableDur.Seconds())
2626
}
2727

2828
nonRenewable := Secret{LeaseDuration: 100}
2929
nonRenewableDur, _ := leaseCheckWait(&nonRenewable)
3030
if nonRenewableDur < 80*time.Second || nonRenewableDur > 95*time.Second {
31-
t.Fatalf("renewable duration is not within 80%% to 95%% of lease duration: %s", nonRenewableDur)
31+
t.Fatalf("renewable duration is not within 80%% to 95%% of lease duration: %f", nonRenewableDur.Seconds())
3232
}
3333

3434
data := map[string]interface{}{

0 commit comments

Comments
 (0)