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

feat: add test suite for the cli tests #3715

Merged
merged 14 commits into from
Nov 6, 2023
Merged

feat: add test suite for the cli tests #3715

merged 14 commits into from
Nov 6, 2023

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Oct 26, 2023

Description

The mutex lock into the package cosmos-sdk/testutil/network/network is blocking the CLI tests into a scaffolded Chain

Solution

Move to the suite test

This PR also speeds up the chain and Ignite integration tests

@Pantani Pantani self-assigned this Oct 26, 2023
@Pantani Pantani added this to the v0.29 milestone Oct 30, 2023
@Pantani Pantani marked this pull request as ready for review October 30, 2023 12:54
@Pantani Pantani modified the milestones: v0.29, v0.28 Oct 31, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Comment on lines +30 to +38
func (s *IntegrationTestSuite) SetupTest() {
s.T().Log("setting up test")
s.cfg = network.DefaultConfig()
}

func (s *IntegrationTestSuite) SetupSuite() {
s.T().Log("setting up integration test suite")
s.cfg = network.DefaultConfig()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure but wouldn't it make sense to set the config per test and remove the config initialization from the suite?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are setting the config per test, but since we have a global config we are resetting the config for each test

@Pantani Pantani merged commit 4a94461 into main Nov 6, 2023
26 checks passed
@Pantani Pantani deleted the feat/cli-test-suite branch November 6, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants