@@ -392,9 +392,9 @@ func TestWaitForJobCompletion_Success(t *testing.T) {
392392 },
393393 }
394394
395- client := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
395+ cl := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
396396
397- err := WaitForJobCompletion (context .Background (), client , job , 10 * time .Second )
397+ err := WaitForJobCompletion (context .Background (), cl , job , 10 * time .Second )
398398 if err != nil {
399399 t .Errorf ("Expected no error, got %v" , err )
400400 }
@@ -414,9 +414,9 @@ func TestWaitForJobCompletion_Timeout(t *testing.T) {
414414 },
415415 }
416416
417- client := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
417+ cl := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
418418
419- err := WaitForJobCompletion (context .Background (), client , job , 1 * time .Second )
419+ err := WaitForJobCompletion (context .Background (), cl , job , 1 * time .Second )
420420 if err == nil {
421421 t .Errorf ("Expected timeout error, got nil" )
422422 }
@@ -442,9 +442,9 @@ func TestWaitForJobCompletion_Failed(t *testing.T) {
442442 },
443443 }
444444
445- client := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
445+ cl := fake .NewClientBuilder ().WithScheme (scheme ).WithObjects (job ).Build ()
446446
447- err := WaitForJobCompletion (context .Background (), client , job , 10 * time .Second )
447+ err := WaitForJobCompletion (context .Background (), cl , job , 10 * time .Second )
448448 if err == nil {
449449 t .Errorf ("Expected job failed error, got nil" )
450450 }
0 commit comments