Skip to content

expfmt: add test case for issue with *bufio.Reader and FmtText format#448

Merged
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:test442
Feb 21, 2023
Merged

expfmt: add test case for issue with *bufio.Reader and FmtText format#448
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:test442

Conversation

@roidelapluie
Copy link
Member

The test case checks that a *bufio.Reader can be passed to expfmt.NewDecoder with the FmtText format without causing an infinite recursion. This is a regression test for the issue reported in #442.

The test case checks that a *bufio.Reader can be passed to
expfmt.NewDecoder with the FmtText format without causing an infinite
recursion. This is a regression test for the issue reported in
prometheus#442.

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
@roidelapluie roidelapluie merged commit 81fdf5b into prometheus:main Feb 21, 2023
Copy link
Contributor

@abursavich abursavich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants