Skip to content

Commit b1a52f3

Browse files
iunanuarochdev
authored andcommitted
[asm] iast taint-tracking flaky (#5225)
1 parent ea879fa commit b1a52f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/dd-trace/test/appsec/iast/taint-tracking/rewriter.spec.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,13 @@ describe('IAST Rewriter', () => {
301301
function onHardcodedSecret (literals) {
302302
expect(literals).to.deep.equal(literalsResult)
303303

304+
hardcodedSecretCh.unsubscribe(onHardcodedSecret)
304305
done()
305306
}
306307

307308
hardcodedSecretCh.subscribe(onHardcodedSecret)
308309

309310
port.postMessage({ type: constants.REWRITTEN_MESSAGE, data })
310-
311-
setTimeout(() => {
312-
hardcodedSecretCh.unsubscribe(onHardcodedSecret)
313-
}, 50)
314311
})
315312

316313
it('should log the message', (done) => {

0 commit comments

Comments
 (0)