Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Oct 31, 2024
1 parent 0fbee76 commit a954164
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import * as path from 'path';
import {
AwsLambdaInstrumentation,
AwsLambdaInstrumentationConfig,
traceContextEnvironmentKey,
lambdaMaxInitInMilliseconds,
} from '../../src';
import {
Expand Down Expand Up @@ -534,7 +533,7 @@ describe('lambda handler', () => {
});

it('can extract context from lambda context env variable using a global propagator', async () => {
process.env[traceContextEnvironmentKey] = sampledAwsHeader;
process.env['_X_AMZN_TRACE_ID'] = sampledAwsHeader;
propagation.setGlobalPropagator(new AWSXRayLambdaPropagator());
initializeHandler('lambda-test/async.handler');

Expand Down

0 comments on commit a954164

Please sign in to comment.