Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Nov 24, 2024
1 parent 575abd7 commit 9f30ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanrepository/scanrepository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func TestScanRepositoryCmd_Run(t *testing.T) {
configAggregator, err := utils.BuildRepoAggregator(xrayVersion, xscVersion, client, configData, &gitTestParams, &serverParams, utils.ScanRepository)
assert.NoError(t, err)
// Run
var cmd = ScanRepositoryCmd{dryRun: true, dryRunRepoPath: testDir}
var cmd = ScanRepositoryCmd{XrayVersion: xrayVersion, XscVersion: xscVersion, dryRun: true, dryRunRepoPath: testDir}
err = cmd.Run(configAggregator, client, utils.MockHasConnection())
defer func() {
assert.NoError(t, os.Chdir(baseDir))
Expand Down

0 comments on commit 9f30ce5

Please sign in to comment.