File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import onExit from 'signal-exit'
8
8
export const lockPaths = new Set ( )
9
9
10
10
export const defaultLockOptions = {
11
- stale : 15000 ,
12
- onCompromised : err => consola . fatal ( err )
11
+ stale : 30000 ,
12
+ onCompromised : err => consola . warn ( err )
13
13
}
14
14
15
15
export function getLockOptions ( options ) {
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ describe('util: locking', () => {
18
18
beforeEach ( ( ) => jest . resetAllMocks ( ) )
19
19
beforeEach ( ( ) => lockPaths . clear ( ) )
20
20
21
- test ( 'onCompromised lock is fatal error by default' , ( ) => {
21
+ test ( 'onCompromised lock is warn error by default' , ( ) => {
22
22
defaultLockOptions . onCompromised ( )
23
- expect ( consola . fatal ) . toHaveBeenCalledTimes ( 1 )
23
+ expect ( consola . warn ) . toHaveBeenCalledTimes ( 1 )
24
24
} )
25
25
26
26
test ( 'can override default options' , ( ) => {
You can’t perform that action at this time.
0 commit comments