Skip to content

Commit

Permalink
Revert changes to actions.go
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Mar 8, 2024
1 parent 9dba765 commit 9f1d40c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func (tr TestConfig) submitConsumerAdditionProposal(
bz, err = target.ExecCommand(
"/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, jsonStr, "/temp-proposal.json"),
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand All @@ -307,6 +308,7 @@ func (tr TestConfig) submitConsumerAdditionProposal(
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand Down Expand Up @@ -349,6 +351,7 @@ func (tr TestConfig) submitConsumerRemovalProposal(

bz, err = target.ExecCommand(
"/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, jsonStr, "/temp-proposal.json")).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand All @@ -365,6 +368,7 @@ func (tr TestConfig) submitConsumerRemovalProposal(
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand Down Expand Up @@ -423,6 +427,7 @@ func (tr TestConfig) submitParamChangeProposal(
bz, err = target.ExecCommand(
"/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, jsonStr, "/params-proposal.json"),
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand Down Expand Up @@ -559,7 +564,7 @@ func (tr *TestConfig) transformConsumerGenesis(consumerChain ChainID, genesis []
panic(fmt.Sprintf("failed writing ccv consumer file : %v", err))
}
defer file.Close()
err = os.WriteFile(file.Name(), genesis, 0o600)
err = os.WriteFile(file.Name(), genesis, 0600)
if err != nil {
log.Fatalf("Failed writing consumer genesis to file: %v", err)
}
Expand Down Expand Up @@ -870,6 +875,7 @@ func (tr TestConfig) addChainToHermes(
"--chain", string(tr.chainConfigs[action.Chain].ChainId),
"--mnemonic-file", "/root/.hermes/mnemonic.txt",
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand Down Expand Up @@ -1831,6 +1837,7 @@ func (tr TestConfig) submitChangeRewardDenomsProposal(action SubmitChangeRewardD

bz, err = target.ExecCommand(
"/bin/bash", "-c", fmt.Sprintf(`echo '%s' > %s`, jsonStr, "/change-reward-denoms-proposal.json")).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand All @@ -1846,6 +1853,7 @@ func (tr TestConfig) submitChangeRewardDenomsProposal(action SubmitChangeRewardD
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()

if err != nil {
log.Fatal(err, "\n", string(bz))
}
Expand Down

0 comments on commit 9f1d40c

Please sign in to comment.