mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
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:
parent
e7827879db
commit
2a2b743445
@ -1425,9 +1425,8 @@ func TestPriorityQueue_addToActiveQ(t *testing.T) {
|
|||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
_, ctx := ktesting.NewTestContext(t)
|
logger, ctx := ktesting.NewTestContext(t)
|
||||||
ctx, cancel := context.WithCancel(ctx)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
logger := klog.FromContext(ctx)
|
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
m := map[string][]framework.PreEnqueuePlugin{"": tt.plugins}
|
m := map[string][]framework.PreEnqueuePlugin{"": tt.plugins}
|
||||||
|
Loading…
Reference in New Issue
Block a user