Skip to content

Commit eb3db00

Browse files
committed
Fix
1 parent 81b51aa commit eb3db00

File tree

1 file changed

+8
-2
lines changed
  • plugins/node/opentelemetry-instrumentation-aws-sdk/test

1 file changed

+8
-2
lines changed

Diff for: plugins/node/opentelemetry-instrumentation-aws-sdk/test/sns.test.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('SNS - v2', () => {
7171

7272
afterEach(() => {
7373
hookSpy.resetHistory();
74-
})
74+
});
7575

7676
describe('publish', () => {
7777
it('topic arn', async () => {
@@ -187,6 +187,10 @@ describe('SNS - v3', () => {
187187
});
188188
});
189189

190+
afterEach(() => {
191+
hookSpy.resetHistory();
192+
});
193+
190194
describe('publish', () => {
191195
beforeEach(() => {
192196
nock('https://sns.us-east-1.amazonaws.com/')
@@ -245,14 +249,16 @@ describe('SNS - v3', () => {
245249
});
246250

247251
describe('publish batch', () => {
248-
it('inject context propagation for publish batch command', async () => {
252+
beforeEach(() => {
249253
nock('https://sns.us-east-1.amazonaws.com/')
250254
.post('/')
251255
.reply(
252256
200,
253257
fs.readFileSync('./test/mock-responses/sns-publish-batch.xml', 'utf8')
254258
);
259+
});
255260

261+
it('inject context propagation for publish batch command', async () => {
256262
await sns
257263
.publishBatch({
258264
TopicArn: fakeARN,

0 commit comments

Comments
 (0)