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

Update http.send test to work w/o internet access #946

Merged

Conversation

ashutosh-narkar
Copy link
Member

Fixes #945

Signed-off-by: Ashutosh Narkar [email protected]

Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


// run the test
runTopDownTestCase(t, data, "http.send", rule, resultObj.String())
}

func getTestServer() (baseURL string, teardownFn func()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] There's no need to name the return arguments here, I think. (As long as we avoid "naked returns", it doesn't matter much, though.

@tsandall
Copy link
Member

LGTM. Agreed w/ @srenatus that named returns are not required.

@tsandall tsandall merged commit c81d653 into open-policy-agent:master Sep 14, 2018
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.

3 participants