Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eth-Connector tests: improvements and minor refactoring. #108

Merged
merged 2 commits into from
May 28, 2021

Commits on May 27, 2021

  1. Eth-connector tests: improvements and refactoring.

    * Rename `check_execution_status_failure()` method to
      `assert_execution_status_failure()`;
    * `assert_execution_status_failure()`: accept panic message as an arg.
    * Explicitly specify the panic message for each
      `assert_execution_status_failure()` if the promise didn't fail with
      the provided error message.
    sept-en committed May 27, 2021
    Configuration menu
    Copy the full SHA
    751aaa5 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2021

  1. Eth-connector tests:improve checks for failure msg.

    * Usually the converted to string has either of following two messages formats:
      "Action #0: Smart contract panicked: ERR_MSG [src/some_file.rs:LINE_NUMBER:COLUMN_NUMBER]"
      "right: 'MISMATCHED_DATA': ERR_MSG [src/some_file.rs:LINE_NUMBER:COLUMN_NUMBER]"
      So the ": ERR_MSG [" pattern should catch all invariants of error,
      even if one of the errors message is a subset of another one
      (e.g. `ERR_MSG_FAILED` is a subset of `ERR_MSG_FAILED_FOO`).
    sept-en committed May 28, 2021
    Configuration menu
    Copy the full SHA
    8890f91 View commit details
    Browse the repository at this point in the history