Skip to content

Missing close(). #36

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

Closed
wants to merge 1 commit into from
Closed

Conversation

wolfedale
Copy link

I think when we close() is it will then pass. Correct me if I'm wrong.

@discordianfish
Copy link
Owner

Hi,

what you are trying to achived with your change? The tests already pass and it's suppose to check that the channel returns nil even without closing it.

@wolfedale
Copy link
Author

wolfedale commented Jun 13, 2018

It's failing when I'm not closing it.

➜ nginx_exporter git:(master) ✗ go test
--- FAIL: TestNginxStatus (0.00s)
nginx_exporter_test.go:42: expected closed channel
FAIL
exit status 1
FAIL _/Users/me/Tests/nginx_exporter 0.019s

@discordianfish
Copy link
Owner

I can't reproduce it. If you have more details, let me know. Maybe you have a stale checkout or something? Tried to build from the docker image?

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.

2 participants