Skip to content

Commit 3c01503

Browse files
fixed expected err assertion in container integration test
1 parent 2b775f6 commit 3c01503

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)