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

Silence mock.go logs when using AssertExpectations #414

Closed
dsvensson opened this issue Mar 26, 2017 · 0 comments · Fixed by #1360
Closed

Silence mock.go logs when using AssertExpectations #414

dsvensson opened this issue Mar 26, 2017 · 0 comments · Fixed by #1360
Labels
bug pkg-mock Any issues related to Mock revisit

Comments

@dsvensson
Copy link

I have a suite which owns a mock instance that gets recreated in each SetupTest(). To avoid copy-paste laziness that introduces superflous mock.On calls, I added AssertExpectations to suite's TearDownTest() function. This is great as it catches all unused On calls, but it has the side effect of adding log message for each time a function is called on the mock. What's the reason for this log message? Could it perhaps go away?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pkg-mock Any issues related to Mock revisit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants