Skip to content

V1 Integration Tests Fail Sporadically Due to Shared Balance Verification and Assertion's Overload #671

@0xEgao

Description

@0xEgao

Some V1 integration test cases fail sporadically, even when the swap flow completes successfully according to the desired behaviour. These failures are mainly related to how balances are verified during test execution.

Causes :
1-)Balance verification is performed via a common/shared function with overloaded assertions covering multiple balance values, making it hard to determine which test or condition caused a failure.

2-)Fee workflow diagrams and related data are not up-to data with latest swap data.

Approach to fix:
1-)Update the fee workflow diagram using the generated swap report and align balance verification logic in test cases with this updated workflow.

2-)Move balance verification into individual test cases instead of relying on shared verification logic in test_framework/mod.rs, so each test validates only its own expected balances.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions