Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Sep 14, 2018
1 parent 6948986 commit d446af2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions redis_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package redis_test
package redis

import (
"testing"
"time"

"gopkg.in/go-oauth2/redis.v3"
"gopkg.in/oauth2.v3/models"

. "github.com/smartystreets/goconvey/convey"
Expand All @@ -17,11 +16,11 @@ const (

func TestTokenStore(t *testing.T) {
Convey("Test redis token store", t, func() {
opts := &redis.Options{
opts := &Options{
Addr: addr,
DB: db,
}
store := redis.NewRedisStore(opts)
store := NewRedisStore(opts)

Convey("Test authorization code store", func() {
info := &models.Token{
Expand Down Expand Up @@ -105,12 +104,12 @@ func TestTokenStore(t *testing.T) {

func TestTokenStoreWithKeyNamespace(t *testing.T) {
Convey("Test redis token store", t, func() {
opts := &redis.Options{
opts := &Options{
Addr: addr,
DB: db,
KeyNamespace: "test:",
}
store := redis.NewRedisStore(opts)
store := NewRedisStore(opts)

Convey("Test authorization code store", func() {
info := &models.Token{
Expand Down

0 comments on commit d446af2

Please sign in to comment.