Skip to content

Commit c0ba236

Browse files
committed
Run slow kubeadm upgrade tests in parallel
1 parent 24481db commit c0ba236

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmd/kubeadm/app/phases/upgrade/staticpods_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,10 @@ func TestStaticPodControlPlane(t *testing.T) {
444444
},
445445
}
446446

447-
for _, rt := range tests {
447+
for i := range tests {
448+
rt := tests[i]
448449
t.Run(rt.description, func(t *testing.T) {
450+
t.Parallel()
449451
waiter := NewFakeStaticPodWaiter(rt.waitErrsToReturn)
450452
pathMgr, err := NewFakeStaticPodPathManager(rt.moveFileFunc)
451453
if err != nil {
@@ -762,8 +764,11 @@ func TestRenewCertsByComponent(t *testing.T) {
762764
},
763765
}
764766

765-
for _, test := range tests {
767+
for i := range tests {
768+
test := tests[i]
766769
t.Run(test.name, func(t *testing.T) {
770+
t.Parallel()
771+
767772
// Setup up basic requities
768773
tmpDir := testutil.SetupTempDir(t)
769774
defer os.RemoveAll(tmpDir)

0 commit comments

Comments
 (0)