Skip to content

Commit d446af2

Browse files
committed
update test
1 parent 6948986 commit d446af2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

redis_test.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
package redis_test
1+
package redis
22

33
import (
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

1817
func 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

106105
func 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{

0 commit comments

Comments
 (0)