Skip to content

Commit 34d0b1e

Browse files
cx-anjali-deorecx-anurag-dalke
authored andcommitted
fixed expected err assertion in container integration test
1 parent 7e6ff54 commit 34d0b1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/scan_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ func TestContainerEngineScansE2E_InvalidContainerImagesFlag(t *testing.T) {
489489
flag(params.ScanInfoFormatFlag), printer.FormatJSON,
490490
}
491491
err, _ := executeCommand(t, testArgs...)
492-
assertError(t, err, "Invalid value for --container-images flag. The value must be in the format <image-name>:<image-tag>")
492+
fmt.Println(err)
493+
assertError(t, err, "Invalid value for --container-images flag. Image name and tag cannot be empty. Found: image='nginx', tag=''")
493494
}
494495

495496
// Create scans from current dir, zip and url and perform assertions in executeScanAssertions

0 commit comments

Comments
 (0)