Skip to content

Commit b3a6402

Browse files
committed
Reset behaviour to avoid flakes in other tests.
1 parent e1ee9b6 commit b3a6402

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v5-v6.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,13 @@ describe('MongoDBInstrumentation-Tracing-v5', () => {
653653
});
654654

655655
describe('requireParentSpan', () => {
656+
// Resetting the behavior to default to avoid flakes in other tests
657+
afterEach(() => {
658+
instrumentation.setConfig({
659+
requireParentSpan: true,
660+
});
661+
});
662+
656663
it('should not create spans without parent span when requireParentSpan is explicitly set to true', done => {
657664
create({
658665
requireParentSpan: true,

0 commit comments

Comments
 (0)