Skip to content

Do not panic as much in Linux collector tests#3050

Merged
SuperQ merged 1 commit intoprometheus:masterfrom
bsiegert:linuxpanic
Jun 13, 2024
Merged

Do not panic as much in Linux collector tests#3050
SuperQ merged 1 commit intoprometheus:masterfrom
bsiegert:linuxpanic

Conversation

@bsiegert
Copy link
Contributor

Running go test in the collector directory, without the fixtures available, results in multiple panics, including SIGSEGV. Most of these are due to incorrect error handling. This cleans them up.

Running "go test" in the collector directory, without the fixtures
available, results in multiple panics, including `SIGSEGV`. Most of
these are due to incorrect error handling. This cleans them up.

Signed-off-by: Benny Siegert <bsiegert@gmail.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Thanks!

@SuperQ SuperQ merged commit 80859a9 into prometheus:master Jun 13, 2024
v-zhuravlev pushed a commit to grafana/node_exporter that referenced this pull request Nov 1, 2024
Running "go test" in the collector directory, without the fixtures
available, results in multiple panics, including `SIGSEGV`. Most of
these are due to incorrect error handling. This cleans them up.

Signed-off-by: Benny Siegert <bsiegert@gmail.com>
Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
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.

2 participants