From f26103d150e75a1cb428e45c94def61ac8f771b6 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 26 Nov 2019 18:47:34 -0800 Subject: [PATCH] Make test compilable. --- authority/authorize_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/authorize_test.go b/authority/authorize_test.go index fa14caa0..5e112e95 100644 --- a/authority/authorize_test.go +++ b/authority/authorize_test.go @@ -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) {