We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea879fa commit b1a52f3Copy full SHA for b1a52f3
packages/dd-trace/test/appsec/iast/taint-tracking/rewriter.spec.js
@@ -301,16 +301,13 @@ describe('IAST Rewriter', () => {
301
function onHardcodedSecret (literals) {
302
expect(literals).to.deep.equal(literalsResult)
303
304
+ hardcodedSecretCh.unsubscribe(onHardcodedSecret)
305
done()
306
}
307
308
hardcodedSecretCh.subscribe(onHardcodedSecret)
309
310
port.postMessage({ type: constants.REWRITTEN_MESSAGE, data })
-
311
- setTimeout(() => {
312
- hardcodedSecretCh.unsubscribe(onHardcodedSecret)
313
- }, 50)
314
})
315
316
it('should log the message', (done) => {
0 commit comments