diff --git a/packages/utils/src/locking.js b/packages/utils/src/locking.js index 903baa48e1..68cc1a731f 100644 --- a/packages/utils/src/locking.js +++ b/packages/utils/src/locking.js @@ -8,8 +8,8 @@ import onExit from 'signal-exit' export const lockPaths = new Set() export const defaultLockOptions = { - stale: 15000, - onCompromised: err => consola.fatal(err) + stale: 30000, + onCompromised: err => consola.warn(err) } export function getLockOptions(options) { diff --git a/packages/utils/test/locking.test.js b/packages/utils/test/locking.test.js index 5687890830..58dfcf5c41 100644 --- a/packages/utils/test/locking.test.js +++ b/packages/utils/test/locking.test.js @@ -18,9 +18,9 @@ describe('util: locking', () => { beforeEach(() => jest.resetAllMocks()) beforeEach(() => lockPaths.clear()) - test('onCompromised lock is fatal error by default', () => { + test('onCompromised lock is warn error by default', () => { defaultLockOptions.onCompromised() - expect(consola.fatal).toHaveBeenCalledTimes(1) + expect(consola.warn).toHaveBeenCalledTimes(1) }) test('can override default options', () => {