Skip to content

Commit

Permalink
try fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 19, 2025
1 parent c250b24 commit 4a0e992
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/commands/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1845,6 +1845,12 @@ func TestAddSastScan_ScanFlags(t *testing.T) {
},
}

oldActualScanTypes := actualScanTypes

defer func() {
actualScanTypes = oldActualScanTypes
}()

for _, tt := range tests {
actualScanTypes = "sast,sca,kics,scs"
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 4a0e992

Please sign in to comment.