Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test with redismock function "ScanType" #22

Open
googsvg opened this issue Jan 3, 2022 · 1 comment
Open

How to test with redismock function "ScanType" #22

googsvg opened this issue Jan 3, 2022 · 1 comment

Comments

@googsvg
Copy link

googsvg commented Jan 3, 2022

Hello,

I'm using your redismock and it works great! :)

I am using your scan for type, ScanType, but I am missing the ExpectedScanType. Using ExpectedScan isn't working, since the error that pops out is:
expectation '[scan 0 match test_login:d3812faf80134ee6ec6b6cbd]', but call to cmd '[scan 0 match test_login:* type hash]'

Can you please provide me with what I should use for testing ScanType? Thanks!

@james-coopstools
Copy link

I added PR for this feature: #31

Until the PR is approved or a different change is in place, my fork is off of 8.0.6, and the only change is adding this feature (and corresponding test). go get github.com/james-coopstools/redismock/[email protected]

(P.S. This is my first time attempting to contribute to an open source project; please let me know if I am doing anything wrong)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants