Skip to content

Add MuteAfterTestCompletion() option for zaptest - #1543

Open
theunrepentantgeek wants to merge 1 commit into
uber-go:masterfrom
theunrepentantgeek:feature/mute-test-logging
Open

Add MuteAfterTestCompletion() option for zaptest#1543
theunrepentantgeek wants to merge 1 commit into
uber-go:masterfrom
theunrepentantgeek:feature/mute-test-logging

Conversation

@theunrepentantgeek

Copy link
Copy Markdown

Adds the option MuteAfterTestCompletion for zaptest.NewLogger() to allow tests to opt-in for suppression of any panic that occurs due to logs occuring after end of test. Existing tests see no different behaviour.

Includes full unit test coverage.

Closes #1526

@CLAassistant

CLAassistant commented Apr 15, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add zaptest option to suppress logging after test completion

2 participants