File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- package redis_test
1+ package redis
22
33import (
44 "testing"
55 "time"
66
7- "gopkg.in/go-oauth2/redis.v3"
87 "gopkg.in/oauth2.v3/models"
98
109 . "github.com/smartystreets/goconvey/convey"
@@ -17,11 +16,11 @@ const (
1716
1817func TestTokenStore (t * testing.T ) {
1918 Convey ("Test redis token store" , t , func () {
20- opts := & redis. Options {
19+ opts := & Options {
2120 Addr : addr ,
2221 DB : db ,
2322 }
24- store := redis . NewRedisStore (opts )
23+ store := NewRedisStore (opts )
2524
2625 Convey ("Test authorization code store" , func () {
2726 info := & models.Token {
@@ -105,12 +104,12 @@ func TestTokenStore(t *testing.T) {
105104
106105func TestTokenStoreWithKeyNamespace (t * testing.T ) {
107106 Convey ("Test redis token store" , t , func () {
108- opts := & redis. Options {
107+ opts := & Options {
109108 Addr : addr ,
110109 DB : db ,
111110 KeyNamespace : "test:" ,
112111 }
113- store := redis . NewRedisStore (opts )
112+ store := NewRedisStore (opts )
114113
115114 Convey ("Test authorization code store" , func () {
116115 info := & models.Token {
You can’t perform that action at this time.
0 commit comments