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

test: Fix failing e2e test #1186

Merged
merged 4 commits into from
Aug 9, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1819,8 +1819,9 @@ type assignConsumerPubKeyAction struct {
func (tr TestRun) assignConsumerPubKey(action assignConsumerPubKeyAction, verbose bool) {
valCfg := tr.validatorConfigs[action.validator]

// Note: to get error response reported back from this command '--gas auto' needs to be set.
p-offtermatt marked this conversation as resolved.
Show resolved Hide resolved
assignKey := fmt.Sprintf(
`%s tx provider assign-consensus-key %s '%s' --from validator%s --chain-id %s --home %s --node %s --gas 90000 --keyring-backend test -y -o json`,
`%s tx provider assign-consensus-key %s '%s' --from validator%s --chain-id %s --home %s --node %s --gas auto --keyring-backend test -y -o json`,
tr.chainConfigs[chainID("provi")].binaryName,
string(tr.chainConfigs[action.chain].chainId),
action.consumerPubkey,
Expand All @@ -1847,8 +1848,12 @@ func (tr TestRun) assignConsumerPubKey(action assignConsumerPubKeyAction, verbos
}

if action.expectError {
if err == nil {
p-offtermatt marked this conversation as resolved.
Show resolved Hide resolved
log.Fatalf("expected error not raised: %s", string(bz))
}

if verbose {
fmt.Printf("got expected error during key assignment | err: %s \n", err.Error())
fmt.Printf("got expected error during key assignment | err: %s | output: %s \n", err, string(bz))
}
}

Expand Down
Loading