mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Fix broken build
This commit is contained in:
parent
fa4a00f65b
commit
24b89dd452
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue