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

chore: Fix and enable CometMock in e2e tests #1184

Conversation

p-offtermatt
Copy link
Contributor

@p-offtermatt p-offtermatt commented Aug 3, 2023

Description

Closes: #1182

Integrates and enables CometMock to run in the Automated Tests.
Changes by file:

  • .github/workflows/automated-tests.yml: just adds an extra job to run CometMock separately from other tests for now.
    This is just to immediately see whether there are differences, i.e. if CometMock fails and regular tests don't, probably a problem of CometMock.
  • Makefile: Add a new target for tests with CometMock
  • tests/e2e/actions.go: Fix a test to use WaitTime instead of hardcoded sleep. Also, make WaitTime wait a block after waiting time to make new timestamps seen on chain. Without this, after waiting for the allocated time and immediately querying, there wouldn't be a block with the new timestamp yet, and the query would get a block with the old time, e.g. where some voting period has not yet passed.

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • Confirmed the correct type prefix in the PR title
  • Confirmed all author checklist items have been addressed
  • Confirmed that this PR does not change production code

@p-offtermatt p-offtermatt self-assigned this Aug 3, 2023
@p-offtermatt p-offtermatt requested a review from a team as a code owner August 3, 2023 08:37
@p-offtermatt p-offtermatt changed the title Fix and enable CometMock in e2e tests chore: Fix and enable CometMock in e2e tests Aug 3, 2023
@p-offtermatt p-offtermatt changed the base branch from main to masa/1178-happy-path-cleanup-continued August 3, 2023 08:58
@p-offtermatt p-offtermatt merged commit 5ec3365 into masa/1178-happy-path-cleanup-continued Aug 3, 2023
4 checks passed
@p-offtermatt p-offtermatt deleted the ph/adjust-cometmock-integration-for-47-upgrade branch August 3, 2023 08:59
MSalopek pushed a commit that referenced this pull request Aug 9, 2023
* Add make time.sleep WaitTime and wait block after waiting time

* Uncomment verbose error check

* Fix spacing

* Make format

* Add make target for CometMock e2e tests

* Add CometMock job to automated tests
MSalopek added a commit that referenced this pull request Aug 9, 2023
* test: reduce number of happyPath steps

* test: reduce number of happyPath steps

* test: update steps after opt-out

* test: update steps and fix lint

* tests: add cometmock tests

* chore: Fix and enable CometMock in e2e tests (#1184)

* Add make time.sleep WaitTime and wait block after waiting time

* Uncomment verbose error check

* Fix spacing

* Make format

* Add make target for CometMock e2e tests

* Add CometMock job to automated tests

* tests: revert reducing happyPath steps count

* tests: revert reducing happyPath steps count

* Fix --gas auto with CometMock

---------

Co-authored-by: Philip Offtermatt <[email protected]>
Co-authored-by: Philip Offtermatt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable CometMock in e2e tests
1 participant