Skip to content

Commit

Permalink
Comment out dry-run for now (cosmos/cosmos-sdk#11149)
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Aug 9, 2022
1 parent 432cf11 commit 96920ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions cli_test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ func TestLBMFeesDeduction(t *testing.T) {
fooAmt := fooBal.GetBalances().AmountOf(fooDenom)

// test simulation
_, err = f.TxSend(
keyFoo, barAddr, sdk.NewInt64Coin(fooDenom, 1000),
fmt.Sprintf("--fees=%s", sdk.NewInt64Coin(feeDenom, 2)), "--dry-run")
require.NoError(t, err)
// _, err = f.TxSend(
// fooAddr.String(), barAddr, sdk.NewInt64Coin(fooDenom, 1000),
// fmt.Sprintf("--fees=%s", sdk.NewInt64Coin(feeDenom, 2)), "--dry-run")
// require.NoError(t, err)

// Wait for a block
err = n.WaitForNextBlock()
Expand Down Expand Up @@ -225,8 +225,8 @@ func TestLBMSend(t *testing.T) {
require.Equal(t, startTokens.Sub(sendTokens), fooBal.GetBalances().AmountOf(denom))

// Test --dry-run
_, err = f.TxSend(keyFoo, barAddr, sdk.NewCoin(denom, sendTokens), "--dry-run")
require.NoError(t, err)
// _, err = f.TxSend(fooAddr.String(), barAddr, sdk.NewCoin(denom, sendTokens), "--dry-run")
// require.NoError(t, err)

// Test --generate-only
out, err := f.TxSend(
Expand Down Expand Up @@ -368,8 +368,8 @@ func TestLBMCreateValidator(t *testing.T) {

// Test --dry-run
newValTokens := sdk.TokensFromConsensusPower(2, sdk.DefaultPowerReduction)
_, err = f.TxStakingCreateValidator(keyBar, consPubKey, sdk.NewCoin(denom, newValTokens), "--dry-run")
require.NoError(t, err)
// _, err = f.TxStakingCreateValidator(barAddr.String(), consPubKey, sdk.NewCoin(denom, newValTokens), "--dry-run")
// require.NoError(t, err)

// Create the validator
_, err = f.TxStakingCreateValidator(keyBar, consPubKey, sdk.NewCoin(denom, newValTokens), "-y")
Expand Down Expand Up @@ -459,8 +459,8 @@ func TestLBMSubmitProposal(t *testing.T) {
require.Equal(t, 0, len(msg.GetSignatures()))

// Test --dry-run
_, err = f.TxGovSubmitProposal(keyFoo, "Text", "Test", "test", sdk.NewCoin(denom, proposalTokens), "--dry-run")
require.NoError(t, err)
// _, err = f.TxGovSubmitProposal(fooAddr.String(), "Text", "Test", "test", sdk.NewCoin(denom, proposalTokens), "--dry-run")
// require.NoError(t, err)

// Create the proposal
_, err = f.TxGovSubmitProposal(keyFoo, "Text", "Test", "test", sdk.NewCoin(denom, proposalTokens), "-y")
Expand Down
4 changes: 2 additions & 2 deletions cli_test/multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func TestMultiValidatorAndSendTokens(t *testing.T) {
require.Equal(t, startTokens.Sub(sendTokens), fooBal.GetBalances().AmountOf(denom))

// Test --dry-run
_, err = f.TxSend(keyFoo, bazAddr, sdk.NewCoin(denom, sendTokens), "--dry-run")
require.NoError(t, err)
// _, err = f.TxSend(keyFoo, bazAddr, sdk.NewCoin(denom, sendTokens), "--dry-run")
// require.NoError(t, err)

// Test --generate-only
out, err := f.TxSend(
Expand Down

0 comments on commit 96920ad

Please sign in to comment.