mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
Make test compilable.
This commit is contained in:
parent
b29dd3ad0c
commit
92d1db1616
@ -146,7 +146,7 @@ func TestAuthority_authorizeToken(t *testing.T) {
|
||||
}
|
||||
raw, err := jwt.Signed(sig).Claims(cl).CompactSerialize()
|
||||
assert.FatalError(t, err)
|
||||
_, err = _a.authorizeToken(raw)
|
||||
_, err = _a.authorizeToken(context.TODO(), raw)
|
||||
assert.FatalError(t, err)
|
||||
return &authorizeTest{
|
||||
auth: _a,
|
||||
@ -234,7 +234,7 @@ func TestAuthority_authorizeToken(t *testing.T) {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
tc := genTestCase(t)
|
||||
|
||||
p, err := tc.auth.authorizeToken(tc.ott)
|
||||
p, err := tc.auth.authorizeToken(context.TODO(), tc.ott)
|
||||
if err != nil {
|
||||
if assert.NotNil(t, tc.err) {
|
||||
switch v := err.(type) {
|
||||
|
Loading…
Reference in New Issue
Block a user