Skip to content

Commit

Permalink
Allow 'should be able to cancel a snap' test to pass when a cancel su…
Browse files Browse the repository at this point in the history
…ccessfully occurs (backport #7351) [release/4.10.x] (#7362)

Co-authored-by: Nick Tessier <[email protected]>
  • Loading branch information
mergify[bot] and nick4598 authored Nov 13, 2024
1 parent d2237ad commit e20de5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/rpcinterface-full-stack-tests",
"comment": "change the assert in the test 'should be able to cancel a snap' to match the error message thrown on the frontend when a snap is successfully cancelled.",
"type": "none"
}
],
"packageName": "@itwin/rpcinterface-full-stack-tests"
}
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ describe("Snapping", () => {
expect(snap.status).not.to.be.undefined;
} catch (err: any) {
// This is what we expect if the cancellation occurs in time to really cancel the snap.
expect(err.message).to.equal("aborted");
expect(err.message).to.equal("Unknown server response code.");
}
});
});

0 comments on commit e20de5f

Please sign in to comment.