Skip to content

Commit e3ee3f4

Browse files
committed
cleanup
1 parent f7b4653 commit e3ee3f4

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

integration-tests/tests/snapstart.test.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ function testSnapStartInvocation(getInvocation: () => LambdaInvocationDatadogDat
9999
it('should have aws.lambda.snapstart_restore span', () => {
100100
const invocation = getInvocation();
101101
const trace = invocation.traces![0];
102-
const awsLambdaSpan = trace.spans.find((span: any) =>
103-
span.attributes.operation_name === 'aws.lambda'
104-
);
105-
106102
const restoreSpan = trace.spans.find((span: any) =>
107103
span.attributes.operation_name === 'aws.lambda.snapstart_restore'
108104
);
@@ -135,28 +131,6 @@ function testTraceIsolation(getInvocation1: () => LambdaInvocationDatadogData, g
135131

136132
expect(trace1.trace_id).not.toEqual(trace2.trace_id);
137133
});
138-
139-
it('should NOT have traces linked together', () => {
140-
const invocation1 = getInvocation1();
141-
const invocation2 = getInvocation2();
142-
const trace1 = invocation1.traces![0];
143-
const trace2 = invocation2.traces![0];
144-
145-
const awsLambdaSpan1 = trace1.spans.find((span: any) =>
146-
span.attributes.operation_name === 'aws.lambda'
147-
);
148-
const awsLambdaSpan2 = trace2.spans.find((span: any) =>
149-
span.attributes.operation_name === 'aws.lambda'
150-
);
151-
152-
expect(awsLambdaSpan1).toBeDefined();
153-
expect(awsLambdaSpan2).toBeDefined();
154-
155-
if (awsLambdaSpan1 && awsLambdaSpan2) {
156-
expect(awsLambdaSpan1.attributes.parent_id).not.toEqual(awsLambdaSpan2.attributes.span_id);
157-
expect(awsLambdaSpan2.attributes.parent_id).not.toEqual(awsLambdaSpan1.attributes.span_id);
158-
}
159-
});
160134
});
161135
}
162136

0 commit comments

Comments
 (0)