Skip to content

Commit

Permalink
update to error rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCat567 committed Dec 9, 2024
1 parent d7bb780 commit 63b1bfd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,7 @@ describe.each([HotswapMode.FALL_BACK, HotswapMode.HOTSWAP_ONLY])('%p mode', (hot
const ConcurrentModError = new Error('ConcurrentModificationException: Schema is currently being altered, please wait until that is complete.');
ConcurrentModError.name = 'ConcurrentModificationException';
mockAppSyncClient
.on(ListFunctionsCommand)
.resolvesOnce({ functions: [{ name: 'my-function', functionId: 'functionId' }] }).rejects(ConcurrentModError);
.on(ListFunctionsCommand).rejects(ConcurrentModError);
mockAppSyncClient
.on(ListFunctionsCommand)
.resolvesOnce({ functions: [{ name: 'my-function', functionId: 'functionId' }] });
Expand Down

0 comments on commit 63b1bfd

Please sign in to comment.