Skip to content

Commit 65a431d

Browse files
pimlieSébastien Chopin
authored andcommitted
fix: relax lock settings (#5280)
1 parent 2eb1965 commit 65a431d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/utils/src/locking.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import onExit from 'signal-exit'
88
export const lockPaths = new Set()
99

1010
export const defaultLockOptions = {
11-
stale: 15000,
12-
onCompromised: err => consola.fatal(err)
11+
stale: 30000,
12+
onCompromised: err => consola.warn(err)
1313
}
1414

1515
export function getLockOptions(options) {

packages/utils/test/locking.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ describe('util: locking', () => {
1818
beforeEach(() => jest.resetAllMocks())
1919
beforeEach(() => lockPaths.clear())
2020

21-
test('onCompromised lock is fatal error by default', () => {
21+
test('onCompromised lock is warn error by default', () => {
2222
defaultLockOptions.onCompromised()
23-
expect(consola.fatal).toHaveBeenCalledTimes(1)
23+
expect(consola.warn).toHaveBeenCalledTimes(1)
2424
})
2525

2626
test('can override default options', () => {

0 commit comments

Comments
 (0)