vault: fix dropped error in TestTokenStore_HandleRequest_CreateToken_NotAllowedEntityAlias(). (#7934)

This commit is contained in:
Lars Lehtonen 2019-12-02 10:03:24 -08:00 committed by Brian Kassouf
parent 4221091de8
commit 019fbe4b9c

View file

@ -2963,6 +2963,9 @@ func TestTokenStore_HandleRequest_CreateToken_NotAllowedEntityAlias(t *testing.T
"mount_accessor": tokenMountAccessor, "mount_accessor": tokenMountAccessor,
}, },
}) })
if err != nil || (resp != nil && resp.IsError()) {
t.Fatalf("err: %v\nresp: %#v", err, resp)
}
// Create token role // Create token role
resp, err = core.HandleRequest(ctx, &logical.Request{ resp, err = core.HandleRequest(ctx, &logical.Request{