Skip to content

Commit

Permalink
Avoid printing errors while expecting the error beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
haimbj1 committed Sep 22, 2024
1 parent dc17963 commit f57f8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solidity/tests/precompiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ describe("Test Req", () => {
} catch (e) {
hadEvaluationFailure = true;
err = `${e}`;
console.log(`err: ${err}`);
!testCase.shouldCrash && console.log(`err: ${err}`);
}
expect(hadEvaluationFailure).toBe(testCase.shouldCrash);
if (hadEvaluationFailure) {
Expand Down Expand Up @@ -702,7 +702,7 @@ describe("Test Decrypt", () => {
} catch (e) {
hadEvaluationFailure = true;
err = `${e}`;
console.log(`err: ${err}`);
test.shouldPass && console.log(`err: ${err}`);
}
expect(hadEvaluationFailure).toBe(!test.shouldPass);
if (hadEvaluationFailure) {
Expand Down

0 comments on commit f57f8eb

Please sign in to comment.