Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ describe('postgresjs auto instrumentation', () => {
};

await createRunner(__dirname, 'scenario.js')
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.expect({ event: EXPECTED_ERROR_EVENT })
.start()
Expand Down Expand Up @@ -438,7 +441,10 @@ describe('postgresjs auto instrumentation', () => {

await createRunner(__dirname, 'scenario.mjs')
.withFlags('--import', `${__dirname}/instrument.mjs`)
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.expect({ event: EXPECTED_ERROR_EVENT })
.start()
Expand Down Expand Up @@ -532,7 +538,10 @@ describe('postgresjs auto instrumentation', () => {

await createRunner(__dirname, 'scenario-requestHook.js')
.withFlags('--require', `${__dirname}/instrument-requestHook.cjs`)
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down Expand Up @@ -625,7 +634,10 @@ describe('postgresjs auto instrumentation', () => {

await createRunner(__dirname, 'scenario-requestHook.mjs')
.withFlags('--import', `${__dirname}/instrument-requestHook.mjs`)
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down Expand Up @@ -706,7 +718,10 @@ describe('postgresjs auto instrumentation', () => {
};

await createRunner(__dirname, 'scenario-url.cjs')
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down Expand Up @@ -787,7 +802,10 @@ describe('postgresjs auto instrumentation', () => {

await createRunner(__dirname, 'scenario-url.mjs')
.withFlags('--import', `${__dirname}/instrument.mjs`)
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down Expand Up @@ -866,7 +884,10 @@ describe('postgresjs auto instrumentation', () => {
};

await createRunner(__dirname, 'scenario-unsafe.cjs')
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down Expand Up @@ -946,7 +967,10 @@ describe('postgresjs auto instrumentation', () => {

await createRunner(__dirname, 'scenario-unsafe.mjs')
.withFlags('--import', `${__dirname}/instrument.mjs`)
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['port 5432'] })
.withDockerCompose({
workingDirectory: [__dirname],
readyMatches: ['database system is ready to accept connections'],
})
.expect({ transaction: EXPECTED_TRANSACTION })
.start()
.completed();
Expand Down
Loading