Skip to content

Commit

Permalink
update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Jul 31, 2024
1 parent b74f29d commit f3b9422
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ describe('Kinesis', () => {
.promise();

const testSpans = getTestSpans();
console.log(testSpans.length);
const creationSpans = testSpans.filter((s: ReadableSpan) => {
return s.name === 'Kinesis.CreateStream';
});
expect(creationSpans.length).toBe(1);
const publishSpan = creationSpans[0];
expect(publishSpan.attributes[_AWS_KINESIS_STREAM_NAME]).toBe(
const creationSpan = creationSpans[0];
expect(creationSpan.attributes[_AWS_KINESIS_STREAM_NAME]).toBe(
dummyStreamName
);
expect(publishSpan.kind).toBe(SpanKind.CLIENT);
expect(creationSpan.kind).toBe(SpanKind.CLIENT);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ describe('S3', () => {
.promise();

const testSpans = getTestSpans();
console.log(testSpans.length);
const creationSpans = testSpans.filter((s: ReadableSpan) => {
const listObjectsSpans = testSpans.filter((s: ReadableSpan) => {
return s.name === 'S3.ListObjects';
});
expect(creationSpans.length).toBe(1);
const publishSpan = creationSpans[0];
expect(publishSpan.attributes[_AWS_S3_BUCKET]).toBe(dummyBucketName);
expect(publishSpan.kind).toBe(SpanKind.CLIENT);
expect(listObjectsSpans.length).toBe(1);
const listObjectsSpan = listObjectsSpans[0];
expect(listObjectsSpan.attributes[_AWS_S3_BUCKET]).toBe(dummyBucketName);
expect(listObjectsSpan.kind).toBe(SpanKind.CLIENT);
});
});
});

0 comments on commit f3b9422

Please sign in to comment.