Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas committed Nov 18, 2015
1 parent 318e38a commit 669ed2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jwt/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"
"time"
"github.com/RangelReale/osin"
"github.com/pborman/uuid"
)

func TestMerge(t *testing.T) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 669ed2e

Please sign in to comment.