Skip to content

Commit

Permalink
increased timeout for delta test
Browse files Browse the repository at this point in the history
Signed-off-by: George M Dias <[email protected]>
  • Loading branch information
georgedias committed Dec 27, 2024
1 parent a0ec70e commit c5381e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/generate/delta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default class GenerateDelta extends BaseCommand<typeof GenerateDelta> {
}

// Process the output folder
logger.info('Checking if provided output directory exists (create is it does not, clear if exists)...')
logger.info('Checking if provided output directory exists (create it if does not, clear if exists)...')
try {
// Create the folder if it doesn't exist
if (!fs.existsSync(deltaOutputDir)) {
Expand Down
6 changes: 3 additions & 3 deletions test/commands/generate/delta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import path from 'path'
import fs from 'fs'

// Functional tests
describe('The generate delta command', () => {
describe('Test generate delta command', () => {
const tmpobj = tmp.dirSync({unsafeCleanup: true})

// should process delta request with rule id type
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('The generate delta command', () => {

// Now you can safely access the output
expect(stdout).to.contain('Match Controls: 5')
}, 25000)
}, 45000)

it('should map to the correct filenames', async () => {
const {stdout} = await runCommand<{name: string}>(['generate delta',
Expand All @@ -124,5 +124,5 @@ describe('The generate delta command', () => {
expect(output.includes('["+","SV-254240"]'))
expect(output.includes('["+","SV-254241"]'))
expect(output.includes('["+","SV-254242"]'))
}, 25000)
}, 45000)
})

0 comments on commit c5381e3

Please sign in to comment.