Skip to content

Commit 7f4db78

Browse files
committed
fixup! test(node): Fix flaky postgresjs integration test
1 parent 96ef6a3 commit 7f4db78

File tree

1 file changed

+32
-8
lines changed
  • dev-packages/node-integration-tests/suites/tracing/postgresjs

1 file changed

+32
-8
lines changed

dev-packages/node-integration-tests/suites/tracing/postgresjs/test.ts

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ describe('postgresjs auto instrumentation', () => {
218218
};
219219

220220
await createRunner(__dirname, 'scenario.js')
221-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
221+
.withDockerCompose({
222+
workingDirectory: [__dirname],
223+
readyMatches: ['database system is ready to accept connections'],
224+
})
222225
.expect({ transaction: EXPECTED_TRANSACTION })
223226
.expect({ event: EXPECTED_ERROR_EVENT })
224227
.start()
@@ -438,7 +441,10 @@ describe('postgresjs auto instrumentation', () => {
438441

439442
await createRunner(__dirname, 'scenario.mjs')
440443
.withFlags('--import', `${__dirname}/instrument.mjs`)
441-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
444+
.withDockerCompose({
445+
workingDirectory: [__dirname],
446+
readyMatches: ['database system is ready to accept connections'],
447+
})
442448
.expect({ transaction: EXPECTED_TRANSACTION })
443449
.expect({ event: EXPECTED_ERROR_EVENT })
444450
.start()
@@ -532,7 +538,10 @@ describe('postgresjs auto instrumentation', () => {
532538

533539
await createRunner(__dirname, 'scenario-requestHook.js')
534540
.withFlags('--require', `${__dirname}/instrument-requestHook.cjs`)
535-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
541+
.withDockerCompose({
542+
workingDirectory: [__dirname],
543+
readyMatches: ['database system is ready to accept connections'],
544+
})
536545
.expect({ transaction: EXPECTED_TRANSACTION })
537546
.start()
538547
.completed();
@@ -625,7 +634,10 @@ describe('postgresjs auto instrumentation', () => {
625634

626635
await createRunner(__dirname, 'scenario-requestHook.mjs')
627636
.withFlags('--import', `${__dirname}/instrument-requestHook.mjs`)
628-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
637+
.withDockerCompose({
638+
workingDirectory: [__dirname],
639+
readyMatches: ['database system is ready to accept connections'],
640+
})
629641
.expect({ transaction: EXPECTED_TRANSACTION })
630642
.start()
631643
.completed();
@@ -706,7 +718,10 @@ describe('postgresjs auto instrumentation', () => {
706718
};
707719

708720
await createRunner(__dirname, 'scenario-url.cjs')
709-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
721+
.withDockerCompose({
722+
workingDirectory: [__dirname],
723+
readyMatches: ['database system is ready to accept connections'],
724+
})
710725
.expect({ transaction: EXPECTED_TRANSACTION })
711726
.start()
712727
.completed();
@@ -787,7 +802,10 @@ describe('postgresjs auto instrumentation', () => {
787802

788803
await createRunner(__dirname, 'scenario-url.mjs')
789804
.withFlags('--import', `${__dirname}/instrument.mjs`)
790-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
805+
.withDockerCompose({
806+
workingDirectory: [__dirname],
807+
readyMatches: ['database system is ready to accept connections'],
808+
})
791809
.expect({ transaction: EXPECTED_TRANSACTION })
792810
.start()
793811
.completed();
@@ -866,7 +884,10 @@ describe('postgresjs auto instrumentation', () => {
866884
};
867885

868886
await createRunner(__dirname, 'scenario-unsafe.cjs')
869-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
887+
.withDockerCompose({
888+
workingDirectory: [__dirname],
889+
readyMatches: ['database system is ready to accept connections'],
890+
})
870891
.expect({ transaction: EXPECTED_TRANSACTION })
871892
.start()
872893
.completed();
@@ -946,7 +967,10 @@ describe('postgresjs auto instrumentation', () => {
946967

947968
await createRunner(__dirname, 'scenario-unsafe.mjs')
948969
.withFlags('--import', `${__dirname}/instrument.mjs`)
949-
.withDockerCompose({ workingDirectory: [__dirname], readyMatches: ['database system is ready to accept connections'] })
970+
.withDockerCompose({
971+
workingDirectory: [__dirname],
972+
readyMatches: ['database system is ready to accept connections'],
973+
})
950974
.expect({ transaction: EXPECTED_TRANSACTION })
951975
.start()
952976
.completed();

0 commit comments

Comments
 (0)