Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bermuell committed Sep 2, 2024
1 parent 72510bf commit 0ea4988
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ type SubmitConsumerAdditionProposalAction struct {
func (tr Chain) UpdateConsumer(providerChain ChainID, validator ValidatorID, update types.MsgUpdateConsumer) {
content, err := json.Marshal(update)
if err != nil {
log.Fatalf("failed marshalling MsgUpdate", err.Error())
log.Fatal("failed marshalling MsgUpdate: ", err.Error())
}
jsonFile := "/update_consumer.json"
bz, err := tr.target.ExecCommand(
Expand Down
42 changes: 21 additions & 21 deletions tests/e2e/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,27 +341,27 @@ func getTestCases(selectedPredefinedTests, selectedTestFiles TestSet, providerVe
// Run default tests if no test cases were selected
if len(selectedPredefinedTests) == 0 && len(selectedTestFiles) == 0 {
selectedPredefinedTests = TestSet{
"changeover", // PASSED
"happy-path", // PASSED
"democracy-reward", // PASSED
"democracy", // PASSED
"slash-throttle", // PASSED
"consumer-double-sign", // TODO PERMISSIONLESS: failing
"consumer-misbehaviour", // TODO PERMISSIONLESS: failing
"consumer-double-downtime", // PASSED
"partial-set-security-opt-in", // PASSED
"partial-set-security-top-n", // PASSED
"partial-set-security-validator-set-cap", // PASSED
"partial-set-security-validators-power-cap", // PASSED
"partial-set-security-validators-allowlisted", // PASSED
"partial-set-security-validators-denylisted", // PASSED
"partial-set-security-modification-proposal", // TODO PERMISSIONLESS: failing
"active-set-changes", // PASSED
"inactive-provider-validators-on-consumer", // PASSED
"inactive-vals-topN", // TODO PERMISSIONLESS: failing
"inactive-provider-validators-governance", // PASSED
"min-stake", // PASSED
"inactive-vals-mint", // PASSED
"changeover",
"happy-path",
"democracy-reward",
"democracy",
"slash-throttle",
"consumer-double-sign",
"consumer-misbehaviour",
"consumer-double-downtime",
"partial-set-security-opt-in",
"partial-set-security-top-n",
"partial-set-security-validator-set-cap",
"partial-set-security-validators-power-cap",
"partial-set-security-validators-allowlisted",
"partial-set-security-validators-denylisted",
"partial-set-security-modification-proposal",
"active-set-changes",
"inactive-provider-validators-on-consumer",
"inactive-vals-topN",
"inactive-provider-validators-governance",
"min-stake",
"inactive-vals-mint",
}
if includeMultiConsumer != nil && *includeMultiConsumer {
selectedPredefinedTests = append(selectedPredefinedTests, "multiconsumer")
Expand Down
4 changes: 0 additions & 4 deletions tests/e2e/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,6 @@ func (tr Commands) GetProposal(chain ChainID, proposal uint) Proposal {
log.Fatal(err, "\n", propRaw)
}

messages := gjson.Get(propRaw, `proposal.messages`)
for _, msg := range messages.Array() {
fmt.Println("msg val", msg)
}
// for legacy proposal types submitted using "tx submit-legacyproposal" (cosmos-sdk/v1/MsgExecLegacyContent)
propType := gjson.Get(propRaw, `proposal.messages.0.value.content.type`).String()
rawContent := gjson.Get(propRaw, `proposal.messages.0.value.content.value`)
Expand Down

0 comments on commit 0ea4988

Please sign in to comment.