Skip to content

test(e2e): improvements#17

Merged
tbruyelle merged 10 commits intomainfrom
tbruyelle/test/improve-e2e
Sep 23, 2024
Merged

test(e2e): improvements#17
tbruyelle merged 10 commits intomainfrom
tbruyelle/test/improve-e2e

Conversation

@tbruyelle
Copy link
Collaborator

@tbruyelle tbruyelle commented Sep 18, 2024

The main benefit of this change is to print the node logs when no blocks are produced. For that, because the nodes are running in a docker container, the docker API logs is requested.

Also:

  • call t.Run() appropriately: some calls were irrelevant, like when they are used to execute a command which is a part of a test case.
  • rename test cases appropriately
  • print a hint "is the docker image up-to-date?" when the node don't produce block, because most of the time it is the reason.
  • increase speed by removing some sleeps and reducing the Eventually tick parameter
  • improve http request error handling by checking the response status, and eventually retry if the status is "Service Unavailable"
  • add test on gov param change
  • update /atomone.gov.v1.Params query so it doesn't return an error if paramType is not provided (see 945497f)

@tbruyelle tbruyelle changed the title test(e2e): use t.Run appropriately, improve node init feedback test(e2e): improvements Sep 18, 2024
- no need to Sleep after runValidators since everything has been checked.
- Eventually always waits for tick before evaluating the condition
  function, so reducing tick improve exec speed.
@tbruyelle tbruyelle force-pushed the tbruyelle/test/improve-e2e branch from ab420c3 to f1c1864 Compare September 19, 2024 13:33
Backported from more recent version of Gaia, since the gov sub-params
became deprecated, there's no reason to prevent requesting the gov
params without a param type.
@tbruyelle tbruyelle force-pushed the tbruyelle/test/improve-e2e branch from f3dabd2 to 945497f Compare September 22, 2024 13:06
registration became required since we parse the tx query response.
@tbruyelle tbruyelle merged commit 23ae3ea into main Sep 23, 2024
@tbruyelle tbruyelle deleted the tbruyelle/test/improve-e2e branch September 23, 2024 09:30
clockworkgr added a commit that referenced this pull request Mar 13, 2026
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.

2 participants