Skip to content

Investigate possible race condition in (at least) e2e-lending-contract #1950

@ludamad

Description

@ludamad

This seems to fail intermittently: https://app.circleci.com/pipelines/github/AztecProtocol/aztec-packages/8827/workflows/dec16464-4e5b-4b0e-8c02-e14fdd3fcb33/jobs/300406

end-to-end_1  | FAIL src/e2e_lending_contract.test.ts (77.972 s)
end-to-end_1  |   e2e_lending_contract
end-to-end_1  |     ✕ Full lending run-through (70762 ms)
end-to-end_1  | 
end-to-end_1  |   ● e2e_lending_contract › Full lending run-through
end-to-end_1  | 
end-to-end_1  |     expect(received).toEqual(expected) // deep equality
end-to-end_1  | 
end-to-end_1  |     - Expected  - 1
end-to-end_1  |     + Received  + 1
end-to-end_1  | 
end-to-end_1  |       Fr {
end-to-end_1  |     -   "value": 0n,
end-to-end_1  |     +   "value": 420n,
end-to-end_1  |       }
end-to-end_1  | 
end-to-end_1  |       237 |       // Public values
end-to-end_1  |       238 |       const keyPub = this.account.address.toString();
end-to-end_1  |     > 239 |       expect(storage['publicCollateral']).toEqual(this.collateral[keyPub] ?? Fr.ZERO);
end-to-end_1  |           |                                           ^
end-to-end_1  |       240 |       expect(storage['publicStaticDebt']).toEqual(this.staticDebt[keyPub] ?? Fr.ZERO);
end-to-end_1  |       241 |       expect(storage['publicDebt'].value).toEqual(
end-to-end_1  |       242 |         muldivUp((this.staticDebt[keyPub] ?? Fr.ZERO).value, this.accumulator, BASE),
end-to-end_1  | 
end-to-end_1  |       at LendingSimulator.check (e2e_lending_contract.test.ts:239:43)
end-to-end_1  |       at Object.<anonymous> (e2e_lending_contract.test.ts:373:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: Bug. Something is broken.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions