Mocking the connect function of nats #1665
Unanswered
chethan-b-hpe
asked this question in
Q&A
Replies: 1 comment
-
There is no mock available. We recommend running an actual nats-server for tests. It is really lightweight and especially easy in Go, where you can run it embedded into your tests. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any one having idea on how we can mock the nats.Connect function I tried in many ways but still its not working,
sample snippet , I want to mock Connect function of nats here :
Beta Was this translation helpful? Give feedback.
All reactions