bugfix: fix panic in BenchmarkPodRender by using NewPod() constructor (#3623)

Signed-off-by: cuishuang <imcusg@gmail.com>
mine
cui fliter 2025-10-19 00:04:12 +08:00 committed by GitHub
parent ea2b624cf5
commit 26ab3fcc42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ func BenchmarkPodRender(b *testing.B) {
Raw: load(b, "po"),
MX: makePodMX("nginx", "10m", "10Mi"),
}
var po render.Pod
po := render.NewPod()
r := model1.NewRow(12)
b.ReportAllocs()