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

Parameter matching not working #9

Closed
fgblomqvist opened this issue Aug 19, 2016 · 1 comment
Closed

Parameter matching not working #9

fgblomqvist opened this issue Aug 19, 2016 · 1 comment
Labels

Comments

@fgblomqvist
Copy link

I got these two gocks in a test suite:

gock.New("http://www.url.com").
    Get("/path/page.php").
    MatchParam("site", "yahoo").
    Persist().
    Reply(200).
    File("testdata/yahoo.html")

gock.New("http://www.url.com").
    Get("/path/page.php").
    MatchParam("site", "google").
    Persist().
    Reply(200).
    File("testdata/google.html")

However, it's always the first gock that takes the requests. What is wrong?

h2non added a commit that referenced this issue Sep 7, 2016
@h2non
Copy link
Owner

h2non commented Sep 7, 2016

Fixed in v1.0.1. Feel free to update your dependency tree:

$ go get -u gopkg.in/h2non/gock.v1

@h2non h2non closed this as completed Sep 7, 2016
@h2non h2non added the bug label Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants