File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
packages/instrumentation-pg Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 1818 "lint:readme" : " node ../../scripts/lint-readme.js" ,
1919 "prepublishOnly" : " npm run compile" ,
2020 "tdd" : " npm run test -- --watch-extensions ts --watch" ,
21- "test" : " cat test/pg-pool.test.ts nyc mocha 'test/**/*.test.ts'" ,
21+ "test" : " nyc mocha 'test/**/*.test.ts'" ,
2222 "test:debug" : " mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'" ,
2323 "test:with-services-env" : " cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test" ,
2424 "test-all-versions" : " tav" ,
Original file line number Diff line number Diff line change @@ -982,9 +982,8 @@ describe('pg semantic conventions env variable', () => {
982982 const provider = new BasicTracerProvider ( {
983983 spanProcessors : [ new SimpleSpanProcessor ( memoryExporter ) ] ,
984984 } ) ;
985- const testPostgres = process . env . RUN_POSTGRES_TESTS ; // For CI: assumes local postgres db is already available
986- const testPostgresLocally = process . env . RUN_POSTGRES_TESTS_LOCAL ; // For local: spins up local postgres db via docker
987- const shouldTest = testPostgres || testPostgresLocally ; // Skips these tests if false (default)
985+ const testPostgres = process . env . RUN_POSTGRES_TESTS ;
986+ const shouldTest = testPostgres ;
988987 // Here we are `require`ing *before* the instrumentation is created below.
989988 // In *general* this is a potential instrumentation issue, but this works for
990989 // `pg-pool` instrumentation because it patches the `pgPool.prototype`
@@ -1003,23 +1002,13 @@ describe('pg semantic conventions env variable', () => {
10031002 if ( ! shouldTest ) {
10041003 skip ( ) ;
10051004 }
1006-
1007- if ( testPostgresLocally ) {
1008- testUtils . startDocker ( 'postgres' ) ;
1009- }
10101005 } ) ;
10111006
10121007 beforeEach ( ( ) => {
10131008 contextManager = new AsyncLocalStorageContextManager ( ) . enable ( ) ;
10141009 context . setGlobalContextManager ( contextManager ) ;
10151010 } ) ;
10161011
1017- after ( ( ) => {
1018- if ( testPostgresLocally ) {
1019- testUtils . cleanUpDocker ( 'postgres' ) ;
1020- }
1021- } ) ;
1022-
10231012 afterEach ( ( ) => {
10241013 delete process . env . OTEL_SEMCONV_STABILITY_OPT_IN ;
10251014 memoryExporter . reset ( ) ;
You can’t perform that action at this time.
0 commit comments