Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Nov 28, 2024
1 parent aa5d1dd commit 8cd1de9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions e2e/random/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (s *QueryTestSuite) TestQueryCmd() {
requestID := txResult.Events[8].Attributes[0].Value
heightStr := txResult.Events[8].Attributes[2].Value
requestHeight, err := strconv.ParseInt(heightStr, 10, 64)
s.Require().NoError(err)

// ------test GetCmdQueryRandomRequestQueue()-------------
url := fmt.Sprintf("%s/irismod/random/queue", baseURL)
Expand Down
1 change: 0 additions & 1 deletion e2e/random/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func (s *TxTestSuite) TestTxCmd() {
requestID := txResult.Events[8].Attributes[0].Value
heightStr := txResult.Events[8].Attributes[2].Value
requestHeight, err := strconv.ParseInt(heightStr, 10, 64)

s.Require().NoError(err)

// ------test GetCmdQueryRandomRequestQueue()-------------
Expand Down
3 changes: 2 additions & 1 deletion e2e/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,10 @@ func TestAppSimulationAfterImport(t *testing.T) {
)
require.Equal(t, "SimApp", newApp.Name())

newApp.InitChain(&abci.RequestInitChain{
_, err = newApp.InitChain(&abci.RequestInitChain{
AppStateBytes: exported.AppState,
})
require.NoError(t, err)
_, _, err = simulation.SimulateFromSeed(
t,
os.Stdout,
Expand Down
5 changes: 4 additions & 1 deletion simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,10 @@ func QueryBalanceExec(
Address: address,
Denom: denom,
}
result, err := queryClient.Balance(context.Background(), req)
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()

result, err := queryClient.Balance(ctx, req)
if err != nil {
t.Fatalf("failed to query balances: %v", err)
}
Expand Down

0 comments on commit 8cd1de9

Please sign in to comment.