From fcb0b580ab15eba2fe8579c912887ea77a1fded4 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Fri, 8 Jul 2016 23:16:58 -0400 Subject: [PATCH] Fix broken build --- vault/expiration_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vault/expiration_test.go b/vault/expiration_test.go index dd4337f5d..1384da019 100644 --- a/vault/expiration_test.go +++ b/vault/expiration_test.go @@ -159,7 +159,7 @@ func TestExpiration_RegisterAuth_NoLease(t *testing.T) { // Should not be able to renew, no expiration resp, err := exp.RenewToken(&logical.Request{}, "auth/github/login", root.ID, 0) - if err != nil && (err != logical.ErrInvalidRequest || (resp != nil && resp.IsError() && resp.Error().Error() != "lease is not renewable")) { + if err != nil && (err != logical.ErrInvalidRequest || (resp != nil && resp.IsError() && resp.Error().Error() != "lease not found or lease is not renewable")) { t.Fatalf("bad: err:%v resp:%#v", err, resp) } if resp == nil { @@ -459,7 +459,7 @@ func TestExpiration_RenewToken_NotRenewable(t *testing.T) { // Attempt to renew the token resp, err := exp.RenewToken(&logical.Request{}, "auth/github/login", root.ID, 0) - if err != nil && (err != logical.ErrInvalidRequest || (resp != nil && resp.IsError() && resp.Error().Error() != "lease not found or lease is not renewable")) { + if err != nil && (err != logical.ErrInvalidRequest || (resp != nil && resp.IsError() && resp.Error().Error() != "lease is not renewable")) { t.Fatalf("bad: err:%v resp:%#v", err, resp) } if resp == nil {