From 8e8bc7baab766f3010dcc41055e60803c10c75d0 Mon Sep 17 00:00:00 2001 From: fcarreiro Date: Thu, 9 May 2024 08:09:00 +0000 Subject: [PATCH] fix(avm-simulator): fix test expectation --- yarn-project/simulator/src/avm/avm_simulator.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn-project/simulator/src/avm/avm_simulator.test.ts b/yarn-project/simulator/src/avm/avm_simulator.test.ts index 1d0d7f3af50..346e2861a8f 100644 --- a/yarn-project/simulator/src/avm/avm_simulator.test.ts +++ b/yarn-project/simulator/src/avm/avm_simulator.test.ts @@ -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 () => { @@ -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)'"); }); });