Commit review suggestion to pkg/scheduler/backend/queue/scheduling_queue_test.go

Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
This commit is contained in:
dom4ha 2024-09-11 15:23:40 +02:00 committed by GitHub
parent e7827879db
commit 2a2b743445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1425,9 +1425,8 @@ func TestPriorityQueue_addToActiveQ(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, ctx := ktesting.NewTestContext(t)
logger, ctx := ktesting.NewTestContext(t)
ctx, cancel := context.WithCancel(ctx)
logger := klog.FromContext(ctx)
defer cancel()
m := map[string][]framework.PreEnqueuePlugin{"": tt.plugins}