Skip to content

Commit

Permalink
Update test for new SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
haasted committed Jun 9, 2020
1 parent 53c458c commit a750775
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions capacity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ package emoney

import (
"fmt"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/spf13/viper"
"sync"
"time"

Expand Down Expand Up @@ -40,6 +42,9 @@ var _ = Describe("Staking", func() {
It("creates a new testnet", createNewTestnet)

It("Creates a lot of send transactions", func() {
viper.Set(flags.FlagTrustNode, true)
defer viper.Set(flags.FlagTrustNode, nil)

emcli := testnet.NewEmcli()

time.Sleep(2 * time.Second)
Expand Down Expand Up @@ -147,6 +152,7 @@ func sendTx(fromKey, toKey nt.Key, amount sdk.Coins, chainID string) (sdk.TxResp
WithCodec(cdc).
//WithBroadcastMode("block").
WithBroadcastMode("async").
WithTrustNode(true).
WithClient(rpcclient.NewHTTP("tcp://localhost:26657", "/websocket"))

to, err := sdk.AccAddressFromBech32(toKey.GetAddress())
Expand Down

0 comments on commit a750775

Please sign in to comment.