Skip to content

Commit 886a36c

Browse files
authored
test: Changed structure of bedrock tests to avoid getting instrumented core libraries from first test (#3838)
1 parent 414044d commit 886a36c

File tree

5 files changed

+1088
-1119
lines changed

5 files changed

+1088
-1119
lines changed

test/lib/agent_helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ helper.loadMockedAgent = function loadMockedAgent(conf, setState = true) {
9292

9393
_agent = new Agent(config)
9494
_agent.__created = new Error('Only one agent at a time! This one was created at:')
95+
// created to ensure you are working with the appropriate agent instance in a given test
96+
_agent.sessionId = crypto.randomUUID()
9597
_agent.__mocks = {
9698
supportability: new Map()
9799
}

0 commit comments

Comments
 (0)