Skip to content

Commit 0469935

Browse files
committed
Replace rmSync by unlinkSync (#3208)
1 parent 610af89 commit 0469935

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/dd-trace/test/appsec/iast/analyzers/insecure-cookie-analyzer.express.plugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Insecure cookie vulnerability', () => {
1515
})
1616

1717
after(() => {
18-
fs.rmSync(setCookieFunctionsPath)
18+
fs.unlinkSync(setCookieFunctionsPath)
1919
})
2020

2121
withVersions('express', 'express', version => {

packages/dd-trace/test/appsec/iast/analyzers/path-traversal-analyzer.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ prepareTestServerForIast('integration test', (testThatRequestHasVulnerability, t
197197
})
198198

199199
after(() => {
200-
fs.rmSync(fsSyncWayMethodPath, { force: true })
201-
fs.rmSync(fsAsyncWayMethodPath, { force: true })
202-
fs.rmSync(fsPromiseWayMethodPath, { force: true })
200+
fs.unlinkSync(fsSyncWayMethodPath)
201+
fs.unlinkSync(fsAsyncWayMethodPath)
202+
fs.unlinkSync(fsPromiseWayMethodPath)
203203
})
204204

205205
runFsMethodTest(`test fs.${methodName}Sync method`, vulnerableIndex, (args) => {

0 commit comments

Comments
 (0)