File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- package redis_test
1
+ package redis
2
2
3
3
import (
4
4
"testing"
5
5
"time"
6
6
7
- "gopkg.in/go-oauth2/redis.v3"
8
7
"gopkg.in/oauth2.v3/models"
9
8
10
9
. "github.com/smartystreets/goconvey/convey"
@@ -17,11 +16,11 @@ const (
17
16
18
17
func TestTokenStore (t * testing.T ) {
19
18
Convey ("Test redis token store" , t , func () {
20
- opts := & redis. Options {
19
+ opts := & Options {
21
20
Addr : addr ,
22
21
DB : db ,
23
22
}
24
- store := redis . NewRedisStore (opts )
23
+ store := NewRedisStore (opts )
25
24
26
25
Convey ("Test authorization code store" , func () {
27
26
info := & models.Token {
@@ -105,12 +104,12 @@ func TestTokenStore(t *testing.T) {
105
104
106
105
func TestTokenStoreWithKeyNamespace (t * testing.T ) {
107
106
Convey ("Test redis token store" , t , func () {
108
- opts := & redis. Options {
107
+ opts := & Options {
109
108
Addr : addr ,
110
109
DB : db ,
111
110
KeyNamespace : "test:" ,
112
111
}
113
- store := redis . NewRedisStore (opts )
112
+ store := NewRedisStore (opts )
114
113
115
114
Convey ("Test authorization code store" , func () {
116
115
info := & models.Token {
You can’t perform that action at this time.
0 commit comments