Skip to content

Commit

Permalink
[pinpoint-apm#86] fix span recorder error method crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Sep 12, 2023
1 parent 0f59333 commit b509476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/instrumentation/module/express.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ test(`${testName1} Should record request in basic route`, function (t) {
const actualHandleApiMetaInfo = apiMetaService.dataSender.mockAPIMetaInfos[1]
spanEvent = trace.storage.storage[0]
t.equal(actualHandleApiMetaInfo.apiId, spanEvent.apiId, 'apiId')
t.equal(actualHandleApiMetaInfo.apiInfo, 'Test.<anonymous>()', 'apiInfo')
t.equal(actualHandleApiMetaInfo.type, 0, 'type')
t.equal(actualHandleApiMetaInfo.lineNumber, 33, 'line number')
t.true(actualHandleApiMetaInfo.location.endsWith('express.test.js'), 'location')
})
})

Expand Down

0 comments on commit b509476

Please sign in to comment.