You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But for some reason this doesn't work. It says that redis.Client doesn't implement the radix interface because the Cmd method returns a *redis.Reply. But redis.Reply implements bot Int64() and List() so I have no idea what I'm doing wrong.
If we can get this to work, we'll only Redis to be running for integration tests and I'd be really happy.
The text was updated successfully, but these errors were encountered:
you need to return an instance/pointer of struct Reply, like this:
return &Reply{};
since Reply is not an interface but an struct, even if you implement radixResponse exactly as struct Reply you won´t be able to supply an instance of rafixResponse where an instance of Reply is expected.
I´m afraid your mock interface for the redis client would need to return an instance of struct Reply somehow.
Right now we're hitting Redis on the
radix/wrapper
tests. I tried really hard to not do that and failed. I want something like this:But for some reason this doesn't work. It says that
redis.Client
doesn't implement theradix
interface because theCmd
method returns a*redis.Reply
. Butredis.Reply
implements botInt64()
andList()
so I have no idea what I'm doing wrong.If we can get this to work, we'll only Redis to be running for integration tests and I'd be really happy.
The text was updated successfully, but these errors were encountered: