Enable testing logger in the remaining scheduler tests.

This commit is contained in:
dom4ha
2024-09-09 21:59:24 +00:00
parent 17bae91f20
commit e7827879db
14 changed files with 130 additions and 91 deletions

View File

@@ -803,7 +803,8 @@ func BenchmarkVolumeZone(b *testing.B) {
for _, tt := range tests {
b.Run(tt.Name, func(b *testing.B) {
ctx, cancel := context.WithCancel(context.Background())
_, ctx := ktesting.NewTestContext(b)
ctx, cancel := context.WithCancel(ctx)
defer cancel()
nodes := makeNodesWithTopologyZone(tt.NumNodes)
pl := newPluginWithListers(ctx, b, []*v1.Pod{tt.Pod}, nodes, makePVCsWithPV(tt.NumPVC), makePVsWithZoneLabel(tt.NumPV))