Skip to content

Commit

Permalink
chore: disable context after all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed May 29, 2020
1 parent c04ed24 commit 48327d7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Express Plugin', () => {

afterEach(() => {
memoryExporter.reset();
contextManager.disable();
context.disable();
});

describe('Instrumenting normal get operations', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('ioredis', () => {
});

afterEach(() => {
contextManager.disable();
context.disable();
});

before(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe('MongoDBPlugin', () => {

afterEach(done => {
collection.deleteOne({}, done);
contextManager.disable();
context.disable();
});

after(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('Multiple enable on the plugin', () => {

afterEach(done => {
collection.deleteOne({}, done);
contextManager.disable();
context.disable();
});

after(() => {
Expand Down
2 changes: 1 addition & 1 deletion plugins/node/opentelemetry-plugin-mysql/test/mysql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('[email protected]', () => {
});

afterEach(done => {
contextManager.disable();
context.disable();
memoryExporter.reset();
plugin.disable();
connection.end(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('[email protected]', () => {
memoryExporter.reset();
plugin.disable();
pgPlugin.disable();
contextManager.disable();
context.disable();
});

it('should return a plugin', () => {
Expand Down
2 changes: 1 addition & 1 deletion plugins/node/opentelemetry-plugin-redis/test/redis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('[email protected]', () => {
});

afterEach(() => {
contextManager.disable();
context.disable();
});

before(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe('DocumentLoad Plugin', () => {
});

afterEach(() => {
contextManager.disable();
context.disable();
Object.defineProperty(window.document, 'readyState', {
writable: true,
value: 'complete',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('UserInteractionPlugin', () => {
requests = [];
sandbox.restore();
exportSpy.restore();
contextManager.disable();
context.disable();
});

it('should handle task without async operation', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('UserInteractionPlugin', () => {
requests = [];
sandbox.restore();
exportSpy.restore();
contextManager.disable();
context.disable();
});

it('should handle task without async operation', () => {
Expand Down

0 comments on commit 48327d7

Please sign in to comment.