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

Make mockbroker part of the _test code #335

Merged
merged 1 commit into from
Mar 11, 2015
Merged

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Mar 11, 2015

Until #312 lands it in its own package, we should avoid pulling go's testing lib
into the production library. Fixes #334.

cc @Shopify/kafka

Until #312 lands it in its own package, we should avoid pulling go's testing lib
into the production library. Fixes #334.
@wvanbergen
Copy link
Contributor

Smart. The alternative is using an interface instead of testing.T like I did in sarama/mocks, but I guess this is OK as a stopgap measure.

@eapache
Copy link
Contributor Author

eapache commented Mar 11, 2015

It did use an interface when it was public and part of the core API, but I removed it when we made it private, not thinking that without the rename it would still get built into the core package :P

eapache added a commit that referenced this pull request Mar 11, 2015
Make mockbroker part of the _test code
@eapache eapache merged commit 0af6ca1 into master Mar 11, 2015
@eapache eapache deleted the test-only-mockbroker branch March 11, 2015 14:13
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.

Using sarama pulls test code into non-test binaries
2 participants