go-redis / redismock

Redis client Mock
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
271 stars 59 forks source link

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

Open cjweber opened 1 year ago

cjweber commented 1 year ago

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 commented 7 months ago

@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.