Skip to content

Commit

Permalink
fix(avm-simulator): fix test expectation (#6293)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarreiro authored May 9, 2024
1 parent 5514143 commit f51acfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/simulator/src/avm/avm_simulator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('AVM simulator: transpiled Noir contracts', () => {
const bytecode = getAvmTestContractBytecode('u128_addition_overflow');
const results = await new AvmSimulator(initContext()).executeBytecode(bytecode);
expect(results.reverted).toBe(true);
expect(results.revertReason?.message).toEqual('Reverted with output: attempt to add with overflow');
expect(results.revertReason?.message).toEqual('Assertion failed: attempt to add with overflow');
});

it('Expect failure on U128::from_integer() overflow', async () => {
Expand All @@ -117,7 +117,7 @@ describe('AVM simulator: transpiled Noir contracts', () => {
expect(results.reverted).toBe(true);
expect(results.revertReason?.message).toEqual(undefined);
// Note: compiler intrinsic messages (like below) are not known to the AVM
//expect(results.revertReason?.message).toEqual("Reverted with output: call to assert_max_bit_size 'self.__assert_max_bit_size(bit_size)'");
//expect(results.revertReason?.message).toEqual("Assertion failed: call to assert_max_bit_size 'self.__assert_max_bit_size(bit_size)'");
});
});

Expand Down

0 comments on commit f51acfa

Please sign in to comment.