Skip to content

Commit 45e43f1

Browse files
committed
chore(libnpmpack): add sleep to tests to reduce flakiness
1 parent 3ae796d commit 45e43f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workspaces/libnpmpack/test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ t.test('writes tarball to file when dryRun === false', async t => {
3737
name: 'my-cool-pkg',
3838
version: '1.0.0',
3939
scripts: {
40-
prepack: 'touch prepack',
41-
postpack: 'touch postpack',
40+
prepack: 'touch prepack && sleep 1',
41+
postpack: 'sleep 1 && touch postpack',
4242
},
4343
}, null, 2),
4444
})

0 commit comments

Comments
 (0)