Skip to content

Commit e938026

Browse files
committed
make test more resilient
1 parent 8b1b38f commit e938026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspaces/libnpmexec/test/with-lock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ t.test('concurrent locking', async (t) => {
5252
await setTimeout(100)
5353
events.push('lock1 released')
5454
})
55-
await setTimeout(0) // ensure lock1 is acquired before lock2
55+
await setTimeout(50) // ensure lock1 is acquired before lock2
5656
const lockPromise2 = withLock(lockPath, async () => {
5757
events.push('lock2 acquired')
5858
await setTimeout(100)

0 commit comments

Comments
 (0)