Skip to content

Commit

Permalink
fix: @aws-sdk/client-sns tav failure: NotFound error type (#3633)
Browse files Browse the repository at this point in the history
In @aws-sdk/[email protected] the exception name/type changed.
aws/aws-sdk-js-v3@384cbd7
  • Loading branch information
trentm authored Sep 22, 2023
1 parent 2e1eec7 commit 8f51e99
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/instrumentation/modules/@aws-sdk/client-sns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ const testFixtures = [
'error is a child of the failing span from publish to a non existant topic',
);
t.equal(errors[0].transaction_id, tx.id, 'error.transaction_id');
t.equal(
errors[0].exception.type,
'NotFoundException',
t.ok(
// In @aws-sdk/[email protected] the exception name/type changed.
// https://github.com/aws/aws-sdk-js-v3/commit/384cbd7cbdbc0635d2dbff53b54d769ca80dabbb
['NotFoundException', 'NotFound'].indexOf(errors[0].exception.type) !==
-1,
'error.exception.type',
);

Expand Down

0 comments on commit 8f51e99

Please sign in to comment.