We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f8616c commit b6a7990Copy full SHA for b6a7990
dependency/vault_common_test.go
@@ -24,8 +24,8 @@ func TestVaultRenewDuration(t *testing.T) {
24
if err != nil {
25
t.Fatal(err)
26
}
27
- if renewableDur.Seconds() < 16 || renewableDur.Seconds() >= 34 {
28
- t.Fatalf("renewable duration is not within 1/6 to 1/3 of lease duration: %f", renewableDur.Seconds())
+ if renewableDur < 16*time.Second || renewableDur >= 34*time.Second {
+ t.Fatalf("renewable duration is not within 1/6 to 1/3 of lease duration: %s", renewableDur)
29
30
31
nonRenewable := Secret{LeaseDuration: 100}
0 commit comments