Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Oct 11, 2023
1 parent 74a21b8 commit 5118fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('archiver integration with l1 to l2 messages', () => {
let owner: AztecAddress;
let receiver: AztecAddress;

beforeEach(async () => {
beforeAll(async () => {
let deployL1ContractsValues: DeployL1Contracts | undefined;
let accounts: CompleteAddress[];
({ teardown, wallet, deployL1ContractsValues, accounts, config, logger } = await setup(2));
Expand Down Expand Up @@ -59,10 +59,10 @@ describe('archiver integration with l1 to l2 messages', () => {
logger('Successfully deployed contracts and initialized portal');
}, 100_000);

afterEach(async () => {
afterAll(async () => {
await archiver.stop();
await teardown();
}, 30_000);
});

it('cancelled l1 to l2 messages cannot be consumed by archiver', async () => {
// create a message, then cancel it
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('archiver integration with l1 to l2 messages', () => {

it('archiver handles l1 to l2 message correctly even when l2block has no such messages', async () => {
// send a transfer tx to force through rollup with the message included
l2Token.methods.transfer_public(owner, receiver, 0n, 0n).send();
await l2Token.methods.transfer_public(owner, receiver, 0n, 0n).send().wait();

expect((await archiver.getPendingL1ToL2Messages(10)).length).toEqual(0);
expect(() => archiver.getConfirmedL1ToL2Message(Fr.ZERO)).toThrow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl TokenBridge {
let _return_values = context.call_public_function(
self.address,
compute_selector("exit_to_l1_public(Field,(Field),(Field),Field)"),
[recipient, amount, callerOnL1, nonce]
[amount, recipient, callerOnL1, nonce]
);
}
}

0 comments on commit 5118fd6

Please sign in to comment.