Skip to content

Commit

Permalink
test: fix windows process.title
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard committed Oct 2, 2019
1 parent 46545c3 commit d97b21d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -1327,10 +1327,7 @@ function assertMetadata (t, payload) {
t.equal(payload.process.pid, process.pid)
t.ok(payload.process.pid > 0, 'should have a pid greater than 0')
t.ok(payload.process.title, 'should have a process title')
t.ok(
/(npm|node)/.test(payload.process.title),
`process.title should contain expected value (was: "${payload.process.title}")`
)
t.equal(payload.process.title, process.title)
t.deepEqual(payload.process.argv, process.argv)
t.ok(payload.process.argv.length >= 2, 'should have at least two process arguments')
}
Expand Down

0 comments on commit d97b21d

Please sign in to comment.