Skip to content

Commit

Permalink
all: resolve regression issues introduced by 0.6.0 - closes #118
Browse files Browse the repository at this point in the history
* oauth2: introspection handler excess calls - closes #117
* oauth2: inaccurate expires_in time - closes #72
  • Loading branch information
Aeneas Rekkas (arekkas) committed Oct 17, 2016
1 parent 3dbdccc commit a404a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/oauth2/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestGetExpiresIn(t *testing.T) {
now := time.Now()
r := fosite.NewAccessRequest(&fosite.DefaultSession{
ExpiresAt: map[fosite.TokenType]time.Time{
fosite.AccessToken: now.Add(time.Hour).Round(time.Minute),
fosite.AccessToken: now.Add(time.Hour),
},
})
assert.Equal(t, time.Hour, getExpiresIn(r, fosite.AccessToken, time.Millisecond, now))
Expand Down

0 comments on commit a404a14

Please sign in to comment.