elliotchance / redismock

🕋 Mocking Redis in unit tests in Go.
MIT License
147 stars 24 forks source link

No support for latest go-redis/redis #3

Closed mjcbsn22 closed 5 years ago

mjcbsn22 commented 5 years ago

Error when using the latest version of go-redis/redis:

cannot use newTestRedis() (type *redismock.ClientMock) as type "github.com/go-redis/redis".Cmdable in assignment:
    *redismock.ClientMock does not implement "github.com/go-redis/redis".Cmdable (wrong type for Append method)
        have Append(string, string) *"github.com/elliotchance/redismock/vendor/github.com/go-redis/redis".IntCmd
        want Append(string, string) *"github.com/go-redis/redis".IntCmd