@@ -289,14 +289,14 @@ func TestGetResultFromJob(t *testing.T) {
289289 // test an error should be returned
290290 result , err := getResultFromJob (cli , job )
291291 assert .EqualError (t , err , "no pod found for job test-job" )
292- assert .Equal ( t , "" , result )
292+ assert .Empty ( t , result )
293293
294294 cli = fake .NewClientBuilder ().WithObjects (job , pod ).Build ()
295295
296296 // test an error should be returned
297297 result , err = getResultFromJob (cli , job )
298298 assert .EqualError (t , err , "no container statuses found for job test-job" )
299- assert .Equal ( t , "" , result )
299+ assert .Empty ( t , result )
300300
301301 // Set a non-terminated container status to the pod
302302 pod .Status = corev1api.PodStatus {
@@ -311,7 +311,7 @@ func TestGetResultFromJob(t *testing.T) {
311311 cli = fake .NewClientBuilder ().WithObjects (job , pod ).Build ()
312312 result , err = getResultFromJob (cli , job )
313313 assert .EqualError (t , err , "container for job test-job is not terminated" )
314- assert .Equal ( t , "" , result )
314+ assert .Empty ( t , result )
315315
316316 // Set a terminated container status to the pod
317317 pod .Status = corev1api.PodStatus {
@@ -328,7 +328,7 @@ func TestGetResultFromJob(t *testing.T) {
328328 cli = fake .NewClientBuilder ().WithObjects (job , pod ).Build ()
329329 result , err = getResultFromJob (cli , job )
330330 assert .NoError (t , err )
331- assert .Equal ( t , "" , result )
331+ assert .Empty ( t , result )
332332
333333 // Set a terminated container status with invalidate message to the pod
334334 pod .Status = corev1api.PodStatus {
@@ -346,7 +346,7 @@ func TestGetResultFromJob(t *testing.T) {
346346 cli = fake .NewClientBuilder ().WithObjects (job , pod ).Build ()
347347 result , err = getResultFromJob (cli , job )
348348 assert .EqualError (t , err , "error to locate repo maintenance error indicator from termination message" )
349- assert .Equal ( t , "" , result )
349+ assert .Empty ( t , result )
350350
351351 // Set a terminated container status with empty maintenance error to the pod
352352 pod .Status = corev1api.PodStatus {
@@ -364,7 +364,7 @@ func TestGetResultFromJob(t *testing.T) {
364364 cli = fake .NewClientBuilder ().WithObjects (job , pod ).Build ()
365365 result , err = getResultFromJob (cli , job )
366366 assert .EqualError (t , err , "nothing after repo maintenance error indicator in termination message" )
367- assert .Equal ( t , "" , result )
367+ assert .Empty ( t , result )
368368
369369 // Set a terminated container status with maintenance error to the pod
370370 pod .Status = corev1api.PodStatus {
0 commit comments