Minor test fix

This commit is contained in:
Jeff Mitchell 2016-08-09 07:13:29 -04:00
parent d2124486ef
commit 94c9fc3b49
1 changed files with 2 additions and 3 deletions

View File

@ -368,7 +368,7 @@ func TestSystemBackend_renew(t *testing.T) {
t.Fatal("nil data")
}
if resp.Secret.TTL != 180*time.Second {
t.Fatal("bad lease duration: %v", resp.Secret.TTL)
t.Fatalf("bad lease duration: %v", resp.Secret.TTL)
}
// Test the other route path
@ -385,9 +385,8 @@ func TestSystemBackend_renew(t *testing.T) {
t.Fatal("nil data")
}
if resp.Secret.TTL != 180*time.Second {
t.Fatal("bad lease duration: %v", resp.Secret.TTL)
t.Fatalf("bad lease duration: %v", resp.Secret.TTL)
}
}
func TestSystemBackend_renew_invalidID(t *testing.T) {