Skip to content

Copy client hooks to child connections.#2680

Closed
Crystalix007 wants to merge 2 commits into
redis:masterfrom
Crystalix007:master
Closed

Copy client hooks to child connections.#2680
Crystalix007 wants to merge 2 commits into
redis:masterfrom
Crystalix007:master

Conversation

@Crystalix007

Copy link
Copy Markdown

Enables parent hooks on child connections to allow mocking to hook into the commands run on those connections.

Also fixes a flapping test on Redis Gears, caused by an assumption in the order of returned functions.

Michael Kuc added 2 commits August 22, 2023 16:24
When creating a new connection from a client, uses the parent hooks as a
base, to ensure mocking is consistent.
Fixes the Redis Gears TFunctionList test, which was flapping due to
an undefined order of functions being returned.
@ndyakov

ndyakov commented Apr 23, 2025

Copy link
Copy Markdown
Member

Hey @Crystalix007 can you check the implementation that is part of #3320 . I think it covers your usecase.

@ndyakov ndyakov closed this Apr 23, 2025
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