Skip to content

Commit f3b9422

Browse files
committed
update variable names
1 parent b74f29d commit f3b9422

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

plugins/node/opentelemetry-instrumentation-aws-sdk/test/kinesis.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,15 @@ describe('Kinesis', () => {
6666
.promise();
6767

6868
const testSpans = getTestSpans();
69-
console.log(testSpans.length);
7069
const creationSpans = testSpans.filter((s: ReadableSpan) => {
7170
return s.name === 'Kinesis.CreateStream';
7271
});
7372
expect(creationSpans.length).toBe(1);
74-
const publishSpan = creationSpans[0];
75-
expect(publishSpan.attributes[_AWS_KINESIS_STREAM_NAME]).toBe(
73+
const creationSpan = creationSpans[0];
74+
expect(creationSpan.attributes[_AWS_KINESIS_STREAM_NAME]).toBe(
7675
dummyStreamName
7776
);
78-
expect(publishSpan.kind).toBe(SpanKind.CLIENT);
77+
expect(creationSpan.kind).toBe(SpanKind.CLIENT);
7978
});
8079
});
8180
});

plugins/node/opentelemetry-instrumentation-aws-sdk/test/s3.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ describe('S3', () => {
6363
.promise();
6464

6565
const testSpans = getTestSpans();
66-
console.log(testSpans.length);
67-
const creationSpans = testSpans.filter((s: ReadableSpan) => {
66+
const listObjectsSpans = testSpans.filter((s: ReadableSpan) => {
6867
return s.name === 'S3.ListObjects';
6968
});
70-
expect(creationSpans.length).toBe(1);
71-
const publishSpan = creationSpans[0];
72-
expect(publishSpan.attributes[_AWS_S3_BUCKET]).toBe(dummyBucketName);
73-
expect(publishSpan.kind).toBe(SpanKind.CLIENT);
69+
expect(listObjectsSpans.length).toBe(1);
70+
const listObjectsSpan = listObjectsSpans[0];
71+
expect(listObjectsSpan.attributes[_AWS_S3_BUCKET]).toBe(dummyBucketName);
72+
expect(listObjectsSpan.kind).toBe(SpanKind.CLIENT);
7473
});
7574
});
7675
});

0 commit comments

Comments
 (0)