Skip to content

Commit

Permalink
test(cli): increased timeout for sub
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed Sep 6, 2024
1 parent e4448be commit 9e9aa61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/__tests__/cli/pub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect, jest, afterAll } from '@jest/globals'
import util from 'util'

const execAsync = util.promisify(exec)
jest.setTimeout(30000) // 30 seconds timeout
jest.setTimeout(30000)

describe('pub', () => {
let childProcess: ChildProcess | null = null
Expand Down
4 changes: 2 additions & 2 deletions cli/src/__tests__/cli/sub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect, jest, afterAll } from '@jest/globals'
import util from 'util'

const execAsync = util.promisify(exec)
jest.setTimeout(30000) // 30 seconds timeout
jest.setTimeout(60000)

describe('sub', () => {
let childProcesses: ChildProcess[] = []
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('sub', () => {
if (!messageReceived) {
done(new Error('Message not received within the timeout period'))
}
}, 25000)
}, 60000)

// Ensure the timer is cleaned up
timeoutId.unref()
Expand Down

0 comments on commit 9e9aa61

Please sign in to comment.