Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Fix bug MaskedWriter is not flushed before timeout#186

Merged
jpcoenen merged 2 commits intodevelopfrom
feature/fix-maskedwriter-flush
Sep 30, 2019
Merged

Fix bug MaskedWriter is not flushed before timeout#186
jpcoenen merged 2 commits intodevelopfrom
feature/fix-maskedwriter-flush

Conversation

@jpcoenen
Copy link
Copy Markdown
Member

There was a bug in MaskedWriter where it was only flushed on a timeout when a secret was found in the middle of a write. The reason was that matchInProgress := false had to be inside the loop instead of outside. Also added a test to test whether the problem is solved.

Comment thread internals/cli/masker/writer_test.go Outdated
@jpcoenen jpcoenen merged commit 1dbbd73 into develop Sep 30, 2019
@jpcoenen jpcoenen deleted the feature/fix-maskedwriter-flush branch September 30, 2019 13:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants