@@ -2916,7 +2916,7 @@ func TestJobControllerMissingJobSucceedEvent(t *testing.T) {
2916
2916
// manually adding the just-created pod from fake clientset memory to informer cache because informer is not started.
2917
2917
// we are updating the pod status to succeeded which should update the job status to succeeded and remove the finalizer of the pod.
2918
2918
justCreatedPod := podList .(* v1.PodList ).Items [0 ]
2919
- fmt . Printf ("pod is %v\n " , podList .(* v1.PodList ).Items [0 ])
2919
+ t . Logf ("pod is %v\n " , podList .(* v1.PodList ).Items [0 ])
2920
2920
justCreatedPod .Status .Phase = v1 .PodSucceeded
2921
2921
err = podIndexer .Add (& justCreatedPod )
2922
2922
if err != nil {
@@ -2948,7 +2948,7 @@ func TestJobControllerMissingJobSucceedEvent(t *testing.T) {
2948
2948
if err != nil {
2949
2949
t .Fatalf ("Unexpected error when fetching pods %v" , err )
2950
2950
}
2951
- fmt . Printf ("pod is %v\n " , podList .(* v1.PodList ).Items [0 ])
2951
+ t . Logf ("pod is %v\n " , podList .(* v1.PodList ).Items [0 ])
2952
2952
updatedPod := podList .(* v1.PodList ).Items [0 ]
2953
2953
updatedPod .Status .Phase = v1 .PodSucceeded
2954
2954
err = podIndexer .Add (& updatedPod )
@@ -2969,7 +2969,7 @@ func TestJobControllerMissingJobSucceedEvent(t *testing.T) {
2969
2969
if err != nil {
2970
2970
t .Fatalf ("Unexpected error when syncing jobs %v" , err )
2971
2971
}
2972
- time .Sleep (time .Second )
2972
+ time .Sleep (100 * time .Millisecond )
2973
2973
2974
2974
podList , err = clientSet .Tracker ().List (
2975
2975
schema.GroupVersionResource {Version : "v1" , Resource : "pods" },
0 commit comments