Skip to content

Commit 2a47dc9

Browse files
committed
reduce scope
1 parent 7c151bf commit 2a47dc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/dd-trace/test/plugins/agent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ module.exports = {
279279
async load (pluginName, config, tracerConfig = {}) {
280280
tracer = require('../..')
281281
agent = express()
282-
agent.assertSomeTraces(bodyParser.raw({ limit: Infinity, type: 'application/msgpack' }))
283-
agent.assertSomeTraces((req, res, next) => {
282+
agent.use(bodyParser.raw({ limit: Infinity, type: 'application/msgpack' }))
283+
agent.use((req, res, next) => {
284284
if (req.is('application/msgpack')) {
285285
if (!req.body.length) return res.status(200).send()
286286
req.body = msgpack.decode(req.body, { useBigInt64: true })

0 commit comments

Comments
 (0)