From 669ed2e1da2319cb5c90113f3c33192a179f2a7d Mon Sep 17 00:00:00 2001 From: Aeneas Rekkas Date: Thu, 19 Nov 2015 00:12:55 +0100 Subject: [PATCH] tests --- jwt/jwt_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jwt/jwt_test.go b/jwt/jwt_test.go index 2eb9d55cda3..95797da6637 100644 --- a/jwt/jwt_test.go +++ b/jwt/jwt_test.go @@ -6,6 +6,7 @@ import ( "testing" "time" "github.com/RangelReale/osin" +"github.com/pborman/uuid" ) func TestMerge(t *testing.T) { @@ -70,7 +71,9 @@ func TestGenerateAccessToken(t *testing.T) { []byte(TestCertificates[0][1]), []byte(TestCertificates[1][1]), ) - at, rt, err := j.GenerateAccessToken(&osin.AccessData{}, true) + at, rt, err := j.GenerateAccessToken(&osin.AccessData{ + UserData: NewClaimsCarrier(uuid.New(), "hydra", "peter", "tests", time.Now().Add(60 * time.Second), time.Now(), time.Now()), + }, true) assert.Nil(t, err) assert.NotEmpty(t, at) assert.NotEmpty(t, rt)