Skip to content

Commit

Permalink
use v10 gaia
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Jun 27, 2023
1 parent f16b1a5 commit b5c0f78
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func SlashThrottleTestRun() TestRun {
binaryName: "interchain-security-pd",
ipPrefix: "7.7.7",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " +
// Custom slashing parameters for testing validator downtime functionality
// See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking
".app_state.slashing.params.signed_blocks_window = \"10\" | " +
Expand Down Expand Up @@ -212,7 +212,7 @@ func DefaultTestRun() TestRun {
binaryName: "interchain-security-pd",
ipPrefix: "7.7.7",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " +
// Custom slashing parameters for testing validator downtime functionality
// See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking
".app_state.slashing.params.signed_blocks_window = \"10\" | " +
Expand Down Expand Up @@ -269,7 +269,7 @@ func DemocracyTestRun(allowReward bool) TestRun {
binaryName: "interchain-security-pd",
ipPrefix: "7.7.7",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " +
// Custom slashing parameters for testing validator downtime functionality
// See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking
".app_state.slashing.params.signed_blocks_window = \"10\" | " +
Expand Down Expand Up @@ -309,7 +309,7 @@ func MultiConsumerTestRun() TestRun {
binaryName: "interchain-security-pd",
ipPrefix: "7.7.7",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.params.voting_period = \"30s\" | " +
genesisChanges: ".app_state.gov.voting_params.voting_period = \"30s\" | " +
// Custom slashing parameters for testing validator downtime functionality
// See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking
".app_state.slashing.params.signed_blocks_window = \"10\" | " +
Expand Down Expand Up @@ -364,7 +364,7 @@ func ChangeoverTestRun() TestRun {
binaryName: "interchain-security-pd",
ipPrefix: "7.7.7",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " +
// Custom slashing parameters for testing validator downtime functionality
// See https://docs.cosmos.network/main/modules/slashing/04_begin_block.html#uptime-tracking
".app_state.slashing.params.signed_blocks_window = \"10\" | " +
Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ func main() {
}

testRuns := []testRunWithSteps{
{ChangeoverTestRun(), changeoverSteps},
{DefaultTestRun(), happyPathSteps},
{DemocracyTestRun(true), democracySteps},
{DemocracyTestRun(false), rewardDenomConsumerSteps},
// {ChangeoverTestRun(), changeoverSteps},
// {DefaultTestRun(), happyPathSteps},
// {DemocracyTestRun(true), democracySteps},
// {DemocracyTestRun(false), rewardDenomConsumerSteps},
{SlashThrottleTestRun(), slashThrottleSteps},
}
if includeMultiConsumer != nil && *includeMultiConsumer {
Expand Down Expand Up @@ -101,7 +101,7 @@ func (tr *TestRun) Run(steps []Step, localSdkPath string, useGaia bool, gaiaTag
tr.validateStringLiterals()
tr.startDocker()
tr.executeSteps(steps)
tr.teardownDocker()
// tr.teardownDocker()
}

type testRunWithSteps struct {
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/testnet-scripts/start-chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ do

# give this validator some money
ALLOCATION=$(echo "$VALIDATORS" | jq -r ".[$i].allocation")
$BIN genesis add-genesis-account validator$VAL_ID $ALLOCATION \
$BIN add-genesis-account validator$VAL_ID $ALLOCATION \
--home /$CHAIN_ID/validator$VAL_ID \
--keyring-backend test

Expand Down Expand Up @@ -180,7 +180,7 @@ do
# Make a gentx (this command also sets up validator state on disk even if we are not going to use the gentx for anything)
if [ "$SKIP_GENTX" = "false" ] ; then
STAKE_AMOUNT=$(echo "$VALIDATORS" | jq -r ".[$i].stake")
$BIN genesis gentx validator$VAL_ID "$STAKE_AMOUNT" \
$BIN gentx validator$VAL_ID "$STAKE_AMOUNT" \
--home /$CHAIN_ID/validator$VAL_ID \
--keyring-backend test \
--moniker validator$VAL_ID \
Expand All @@ -207,7 +207,7 @@ done

if [ "$SKIP_GENTX" = "false" ] ; then
# make the final genesis.json
$BIN genesis collect-gentxs --home /$CHAIN_ID/validator$FIRST_VAL_ID
$BIN collect-gentxs --home /$CHAIN_ID/validator$FIRST_VAL_ID

# and copy it to the root
cp /$CHAIN_ID/validator$FIRST_VAL_ID/config/genesis.json /$CHAIN_ID/genesis.json
Expand Down

0 comments on commit b5c0f78

Please sign in to comment.