We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aaffc8 commit 8cd8139Copy full SHA for 8cd8139
1 file changed
test/unpack.js
@@ -514,7 +514,8 @@ t.test('symlink in dir path', {
514
515
t.test('clobber through symlink with busted unlink', t => {
516
const poop = new Error('poop')
517
- t.teardown(mutateFS.fail('unlink', poop))
+ // for some reason, resetting fs.unlink in the teardown was breaking
518
+ const reset = mutateFS.fail('unlink', poop)
519
const warnings = []
520
const u = new Unpack({
521
cwd: dir,
@@ -523,6 +524,7 @@ t.test('symlink in dir path', {
523
524
})
525
u.on('close', _ => {
526
t.same(warnings, [['TAR_ENTRY_ERROR', 'poop', poop]])
527
+ reset()
528
t.end()
529
530
u.end(data)
0 commit comments