Skip to content

Commit

Permalink
chore(tests) remove misleading log
Browse files Browse the repository at this point in the history
Remove a log that would emit during an expected startup condition. This
suggested the expected condition was the problem, rather than other
problems after.
  • Loading branch information
rainest committed Oct 2, 2023
1 parent c20f503 commit 65e387c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/envtest/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ func verifyTelemetryReport(t *testing.T, k8sVersion *version.Info, report string
for _, s := range []string{"id", "uptime"} {
report, err = removeStanzaFromReport(report, s)
if err != nil {
t.Logf("failed to remove stanza %q from report: %s", s, err)
// empty reports are expected at test startup, and will not have the expected variable keys
// no point in proceeding if so
return false
}
}
Expand Down

0 comments on commit 65e387c

Please sign in to comment.