Skip to content

Commit

Permalink
feat: use test-utils package in pg pool plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
naseemkullah committed Dec 23, 2019
1 parent bb5ff63 commit d6fde29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
},
"devDependencies": {
"@opentelemetry/plugin-pg": "^0.3.1",
"@opentelemetry/test-utils": "^0.3.1",
"@types/mocha": "^5.2.7",
"@types/node": "^12.6.9",
"@types/pg": "^7.11.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import * as assert from 'assert';
import * as pg from 'pg';
import * as pgPool from 'pg-pool';
import * as assertionUtils from './assertionUtils';
import * as testUtils from './testUtils';
import * as testUtils from '@opentelemetry/test-utils';

const memoryExporter = new InMemorySpanExporter();

Expand Down Expand Up @@ -97,14 +97,14 @@ describe('[email protected]', () => {
pool = new pgPool(CONFIG);
tracer.addSpanProcessor(new SimpleSpanProcessor(memoryExporter));
if (testPostgresLocally) {
testUtils.startDocker();
testUtils.startDocker('postgres');
}
done();
});

after(function(done) {
if (testPostgresLocally) {
testUtils.cleanUpDocker();
testUtils.cleanUpDocker('postgres');
}
pool.end(() => {
done();
Expand Down

This file was deleted.

0 comments on commit d6fde29

Please sign in to comment.