Skip to content

Commit 1f33343

Browse files
committed
Why do we even need them for the test
1 parent b53e033 commit 1f33343

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/socket-npm.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ const spawn = require('@npmcli/promise-spawn')
88

99
const constants = require('../dist/constants.js')
1010

11-
const abortSignal = new AbortController().signal
12-
1311
const { NODE_MODULES, NPM } = constants
1412

1513
const testPath = __dirname
@@ -26,7 +24,6 @@ for (const npmDir of versions) {
2624
)
2725
spawnSync(NPM, ['install', '--silent'], {
2826
cwd: npmPath,
29-
signal: abortSignal,
3027
stdio: 'ignore'
3128
})
3229
console.log(`End of npm i`)
@@ -46,8 +43,7 @@ for (const npmDir of versions) {
4643
cwd: path.join(npmFixturesPath, 'lacking-typosquat'),
4744
env: {
4845
PATH: `${npmBinPath}:${process.env.PATH}`
49-
},
50-
signal: abortSignal
46+
}
5147
}
5248
)
5349
spawnPromise.process.stdout.on('data', (buffer: Buffer) => {

0 commit comments

Comments
 (0)