Skip to content

Commit

Permalink
Add an externally controllable redis test server
Browse files Browse the repository at this point in the history
In the context of tests, using the `RunT` method will spawn up
a new instance of a stub server speaking redis protocol. The
server's behavior can be observed and controlled using the
`RegisterCommandHandler` method for instance.

The redis stub server has zero dependencies. It is essentially
a stripped down version of miniredis. Most exsting alternatives
as of writing this commit were either pure mocking librarry (not
actually listening on a tcp port), or feature-full servers importing
external dependencies to support things such as Lua that we did not
need.
  • Loading branch information
oleiade committed Jul 29, 2022
1 parent 49806de commit 402ed42
Showing 1 changed file with 526 additions and 0 deletions.
Loading

0 comments on commit 402ed42

Please sign in to comment.