From 9f1d40c64bda4aa3b2257accd43c69425df172cf Mon Sep 17 00:00:00 2001
From: Philip Offtermatt
Date: Fri, 8 Mar 2024 09:44:02 +0100
Subject: [PATCH] Revert changes to actions.go
---
tests/e2e/actions.go | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go
index 0b35d6daf3..c6e5424813 100644
--- a/tests/e2e/actions.go
+++ b/tests/e2e/actions.go
@@ -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))
}
@@ -307,6 +308,7 @@ func (tr TestConfig) submitConsumerAdditionProposal(
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()
+
if err != nil {
log.Fatal(err, "\n", string(bz))
}
@@ -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))
}
@@ -365,6 +368,7 @@ func (tr TestConfig) submitConsumerRemovalProposal(
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()
+
if err != nil {
log.Fatal(err, "\n", string(bz))
}
@@ -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))
}
@@ -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)
}
@@ -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))
}
@@ -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))
}
@@ -1846,6 +1853,7 @@ func (tr TestConfig) submitChangeRewardDenomsProposal(action SubmitChangeRewardD
`--keyring-backend`, `test`,
`-y`,
).CombinedOutput()
+
if err != nil {
log.Fatal(err, "\n", string(bz))
}