Skip to content

Commit 58e0a89

Browse files
committed
Remove unused testXrayBinaryScanWithWatch function
This function is no longer used after fixing the SimpleJson tests to scan binaries without watches. Removing it to pass linter checks.
1 parent 74f0c68 commit 58e0a89

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

scans_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -176,21 +176,6 @@ func TestXrayBinaryScanSimpleJsonWithProgress(t *testing.T) {
176176
})
177177
}
178178

179-
func testXrayBinaryScanWithWatch(t *testing.T, format format.OutputFormat, policyName, watchName string, errorExpected bool) string {
180-
params := binaryScanParams{
181-
WithLicense: true,
182-
Format: format,
183-
}
184-
if policyName != "" && watchName != "" {
185-
watchName, deleteWatch := securityTestUtils.CreateTestPolicyAndWatch(t, "xray-scan-binary-policy", "scan-binary-watch", xrayUtils.High)
186-
defer deleteWatch()
187-
// Include violations and vulnerabilities
188-
params.Watches = []string{watchName}
189-
params.WithVuln = true
190-
}
191-
return testXrayMultipleBinariesScan(t, params, errorExpected)
192-
}
193-
194179
func testXrayMultipleBinariesScan(t *testing.T, params binaryScanParams, errorExpected bool) string {
195180
params.BinaryPattern = filepath.Join(filepath.FromSlash(securityTests.GetTestResourcesPath()), "projects", "binaries", "*")
196181
return testXrayBinaryScan(t, params, errorExpected)

0 commit comments

Comments
 (0)