diff options
author | Luke Karrys <luke@lukekarrys.com> | 2022-09-29 20:02:02 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-09-30 03:27:26 +0300 |
commit | 45e43f1e87b8811a382c153488c5ad626fc59fc0 (patch) | |
tree | 98ade2ac578c06d204ff5ca93f29161f3c69f856 | |
parent | 3ae796d937bd36a5b1b9fd6e9e8473b4f2ddc32d (diff) |
chore(libnpmpack): add sleep to tests to reduce flakiness
-rw-r--r-- | workspaces/libnpmpack/test/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workspaces/libnpmpack/test/index.js b/workspaces/libnpmpack/test/index.js index b8007efe0..d9ec1d12a 100644 --- a/workspaces/libnpmpack/test/index.js +++ b/workspaces/libnpmpack/test/index.js @@ -37,8 +37,8 @@ t.test('writes tarball to file when dryRun === false', async t => { name: 'my-cool-pkg', version: '1.0.0', scripts: { - prepack: 'touch prepack', - postpack: 'touch postpack', + prepack: 'touch prepack && sleep 1', + postpack: 'sleep 1 && touch postpack', }, }, null, 2), }) |