@@ -91,7 +91,7 @@ func Test_GS2_GangSchedulingWithScalingFullReplicas(t *testing.T) {
9191 // Setup cluster (shared or individual based on test run mode)
9292 logger .Info ("1. Initialize a 14-node Grove cluster, then cordon 5 nodes" )
9393
94- clientset , restConfig , _ , cleanup , _ := setupTestCluster (ctx , t , 14 )
94+ clientset , restConfig , _ , cleanup := prepareTestCluster (ctx , t , 14 )
9595 defer cleanup ()
9696
9797 // Setup and cordon nodes
@@ -161,7 +161,7 @@ func Test_GS3_GangSchedulingWithPCSScalingFullReplicas(t *testing.T) {
161161 ctx := context .Background ()
162162
163163 logger .Info ("1. Initialize a 20-node Grove cluster, then cordon 11 nodes" )
164- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 20 )
164+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 20 )
165165 defer cleanup ()
166166
167167 // Setup and cordon nodes
@@ -229,7 +229,7 @@ func Test_GS4_GangSchedulingWithPCSAndPCSGScalingFullReplicas(t *testing.T) {
229229
230230 logger .Info ("1. Initialize a 28-node Grove cluster, then cordon 19 nodes" )
231231 // Setup cluster (shared or individual based on test run mode)
232- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 28 )
232+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 28 )
233233 defer cleanup ()
234234
235235 // Setup and cordon nodes
@@ -297,7 +297,7 @@ func Test_GS5_GangSchedulingWithMinReplicas(t *testing.T) {
297297
298298 logger .Info ("1. Initialize a 10-node Grove cluster, then cordon 8 nodes" )
299299 // Setup cluster (shared or individual based on test run mode)
300- clientset , restConfig , _ , cleanup , _ := setupTestCluster (ctx , t , 10 )
300+ clientset , restConfig , _ , cleanup := prepareTestCluster (ctx , t , 10 )
301301 defer cleanup ()
302302
303303 // Setup and cordon nodes
@@ -368,7 +368,7 @@ func Test_GS6_GangSchedulingWithPCSGScalingMinReplicas(t *testing.T) {
368368
369369 logger .Info ("1. Initialize a 14-node Grove cluster, then cordon 12 nodes" )
370370 // Setup cluster (shared or individual based on test run mode)
371- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 14 )
371+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 14 )
372372 defer cleanup ()
373373
374374 // Setup and cordon nodes
@@ -482,7 +482,7 @@ func Test_GS7_GangSchedulingWithPCSGScalingMinReplicasAdvanced1(t *testing.T) {
482482
483483 logger .Info ("1. Initialize a 14-node Grove cluster, then cordon 12 nodes" )
484484 // Setup cluster (shared or individual based on test run mode)
485- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 14 )
485+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 14 )
486486 defer cleanup ()
487487
488488 // Setup and cordon nodes
@@ -606,7 +606,7 @@ func Test_GS8_GangSchedulingWithPCSGScalingMinReplicasAdvanced2(t *testing.T) {
606606
607607 logger .Info ("1. Initialize a 14-node Grove cluster, then cordon 12 nodes" )
608608 // Setup cluster (shared or individual based on test run mode)
609- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 14 )
609+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 14 )
610610 defer cleanup ()
611611
612612 // Setup and cordon nodes
@@ -703,7 +703,7 @@ func Test_GS9_GangSchedulingWithPCSScalingMinReplicas(t *testing.T) {
703703
704704 logger .Info ("1. Initialize a 20-node Grove cluster, then cordon 18 nodes" )
705705 // Setup cluster (shared or individual based on test run mode)
706- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 20 )
706+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 20 )
707707 defer cleanup ()
708708
709709 // Setup and cordon nodes
@@ -808,7 +808,7 @@ func Test_GS10_GangSchedulingWithPCSScalingMinReplicasAdvanced(t *testing.T) {
808808
809809 logger .Info ("1. Initialize a 20-node Grove cluster, then cordon 18 nodes" )
810810 // Setup cluster (shared or individual based on test run mode)
811- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 20 )
811+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 20 )
812812 defer cleanup ()
813813
814814 // Setup and cordon nodes
@@ -915,7 +915,7 @@ func Test_GS11_GangSchedulingWithPCSAndPCSGScalingMinReplicas(t *testing.T) {
915915
916916 logger .Info ("1. Initialize a 28-node Grove cluster, then cordon 26 nodes" )
917917 // Setup cluster (shared or individual based on test run mode)
918- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 28 )
918+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 28 )
919919 defer cleanup ()
920920
921921 // Setup and cordon nodes
@@ -1059,7 +1059,7 @@ func Test_GS12_GangSchedulingWithComplexPCSGScaling(t *testing.T) {
10591059
10601060 logger .Info ("1. Initialize a 28-node Grove cluster, then cordon 26 nodes" )
10611061 // Setup cluster (shared or individual based on test run mode)
1062- clientset , restConfig , dynamicClient , cleanup , _ := setupTestCluster (ctx , t , 28 )
1062+ clientset , restConfig , dynamicClient , cleanup := prepareTestCluster (ctx , t , 28 )
10631063 defer cleanup ()
10641064
10651065 // Setup and cordon nodes
0 commit comments