From 835cdd6d814e461f9c2909ac918b4927cd043bfe Mon Sep 17 00:00:00 2001 From: kerthcet Date: Fri, 6 May 2022 17:51:17 +0800 Subject: [PATCH] fix: resolve goroutine leak in volumescheduling integration tests Signed-off-by: kerthcet --- .../volumescheduling/volume_capacity_priority_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/volumescheduling/volume_capacity_priority_test.go b/test/integration/volumescheduling/volume_capacity_priority_test.go index d7875a814d7..dff08f1739e 100644 --- a/test/integration/volumescheduling/volume_capacity_priority_test.go +++ b/test/integration/volumescheduling/volume_capacity_priority_test.go @@ -54,7 +54,7 @@ func setupClusterForVolumeCapacityPriority(t *testing.T, nsName string, resyncPe if err != nil { t.Fatalf("Failed to create PV controller: %v", err) } - go ctrl.Run(context.TODO()) + go ctrl.Run(textCtx.ctx) // Start informer factory after all controllers are configured and running. informerFactory.Start(textCtx.ctx.Done())