Skip to content

Refactor test cases considering different genesisState of injected apps #819

@cloudgray

Description

@cloudgray

Some tests perform validation based on Evmd’s Genesis State.

For example, in tests/integration/x/vm/test_iterate_contracts.go:L70, the test assumes that five preinstalled contracts are already deployed in the genesis state.
As a result, if a different app is injected and the test is executed, it will fail.

To inject external apps to cosmos/evm integration test, We should enhance description or modify test cases

  1. Clearly document the app requirements and assumptions needed for the test in comments.
  2. Modify the test setup so that the genesis state configured in evmd/app.go is explicitly initialized during the setup phase.

Metadata

Metadata

Assignees

No one assigned

    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