Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using gock with hystrix #97

Open
stlimtat opened this issue Nov 3, 2020 · 0 comments
Open

Using gock with hystrix #97

stlimtat opened this issue Nov 3, 2020 · 0 comments

Comments

@stlimtat
Copy link

stlimtat commented Nov 3, 2020

Problem:
When I use hystix client, I want an ability to use a framework like https://github.com/h2non/gock to mock traffic for my testing purposes.

gock provides a means of doing roughly

hystrix := NewHystrixClient()
gock.InterceptClient(hystrix)
    gock.New("http://foo.com").
        Get("/bar").
        Reply(http.StatusOK).
        JSON(map[string]string{"foo": "bar"})
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

No branches or pull requests

1 participant