-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use test-utils package in pg pool plugin
- Loading branch information
1 parent
bb5ff63
commit d6fde29
Showing
3 changed files
with
4 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
|
||
|
@@ -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(); | ||
|
54 changes: 0 additions & 54 deletions
54
packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg-pool/test/testUtils.ts
This file was deleted.
Oops, something went wrong.