Skip to content

Update mock.go to call hooks that are added to mock client#74

Open
cjweber wants to merge 2 commits into
go-redis:masterfrom
cjweber:chris/add-hook-calls
Open

Update mock.go to call hooks that are added to mock client#74
cjweber wants to merge 2 commits into
go-redis:masterfrom
cjweber:chris/add-hook-calls

Conversation

@cjweber
Copy link
Copy Markdown

@cjweber cjweber commented Jun 5, 2023

After updating to go-redis-v9, I found that the hooks were not getting executed in tests. This change makes it so hooks that are added to the mock client are executed as expected, per https://uptrace.dev/blog/go-redis-v9.html#improved-hooks.

@cjweber cjweber marked this pull request as draft June 5, 2023 21:51
@cjweber cjweber marked this pull request as ready for review June 5, 2023 21:56
@cjweber
Copy link
Copy Markdown
Author

cjweber commented Nov 17, 2023

@monkey92t is there any chance my PR could be reviewed? I would love to use v9 mock for my telemetry hook tests using go-redis v9.

@amclay
Copy link
Copy Markdown

amclay commented Oct 2, 2024

Is this project abandoned?

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

Successfully merging this pull request may close these issues.

2 participants