Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Dec 23, 2024
1 parent 116304e commit 40ed6c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/versioned/express/errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
*/

'use strict'

// Make express quiet.
process.env.NODE_ENV = 'test'

const assert = require('node:assert')
const http = require('http')
const test = require('node:test')
Expand Down Expand Up @@ -199,7 +203,7 @@ test('Error handling tests', async (t) => {
})

app.use(function (error, req, res, next) {
plan.ifError(error)
plan.equal(error.message, 'some error')
plan.equal(agent.getTransaction(), null, 'no active transaction when responding')
res.end()
})
Expand Down

0 comments on commit 40ed6c5

Please sign in to comment.