Skip to content

Commit 7865524

Browse files
authored
update unit tests
1 parent d894e28 commit 7865524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/instrumentation-patch.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ describe('InstrumentationPatchTest', () => {
565565
await send({}, null);
566566
});
567567

568-
it('Injecting with existing X-Ray header', async () => {
568+
it('propagator injects with valid context', async () => {
569569
sinon
570570
.stub(AWSXRayPropagator.prototype, 'inject')
571571
.callsFake((context: OtelContext, carrier: unknown, setter: TextMapSetter) => {
@@ -584,7 +584,7 @@ describe('InstrumentationPatchTest', () => {
584584
expect(mockedMiddlewareStackInternal[0][1].name).toEqual('_adotInjectXrayContextMiddleware');
585585
});
586586

587-
it('Injecting without existing X-Ray header', async () => {
587+
it('propagator does not inject with invalid context', async () => {
588588
const invalidContext = trace.setSpanContext(ROOT_CONTEXT, {
589589
traceId: 'invalid-trace-id',
590590
spanId: 'invalid-span',

0 commit comments

Comments
 (0)