Skip to content

Commit

Permalink
test: fix test oracle not on line (#598)
Browse files Browse the repository at this point in the history
Co-authored-by: fx0x55 <80245546+fx0x55@users.noreply.github.com>
  • Loading branch information
zakir-code and fx0x55 authored Jul 25, 2024
1 parent 6009945 commit 5c17a1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/crosschain_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ func (suite *CrosschainTestSuite) BridgeCallConfirm(nonce uint64, isSuccess bool
Signature: hex.EncodeToString(signatureBytes),
ChainName: suite.chainName,
},
)
suite.BroadcastTx(suite.bridgerPrivKey,
&crosschaintypes.MsgBridgeCallResultClaim{
ChainName: suite.chainName,
BridgerAddress: suite.BridgerAddr().String(),
Expand Down
2 changes: 2 additions & 0 deletions tests/crosschain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ func (suite *IntegrationTest) LiquidityTest() {
suite.Equal(1, len(unbatchedTx))
suite.EqualValues(transferAmount, unbatchedTx[0].Token.Amount.Add(unbatchedTx[0].Fee.Amount))
suite.EqualValues(moduleTokenMap[bscChain.chainName], unbatchedTx[0].Token.GetContract())
bscChain.CancelAllSendToExternal()
suite.Equal(0, len(bscChain.QueryPendingUnbatchedTx(bscChain.AccAddress())))
}

func (suite *IntegrationTest) BridgeCallTest() {
Expand Down
1 change: 1 addition & 0 deletions tests/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func (suite *TestSuite) BroadcastTx(privKey cryptotypes.PrivKey, msgList ...sdk.
txResponse, err := grpcClient.BroadcastTx(txRaw)
suite.NoError(err)
suite.NotNil(txResponse) // txResponse might be nil, but error is also nil
suite.EqualValues(0, txResponse.Code)
txResponse, err = grpcClient.WaitMined(txResponse.TxHash, 200*suite.timeoutCommit, 10*suite.timeoutCommit)
suite.NoError(err)
suite.T().Log("broadcast tx", "msg:", sdk.MsgTypeURL(msgList[0]), "height:", txResponse.Height, "txHash:", txResponse.TxHash)
Expand Down

0 comments on commit 5c17a1d

Please sign in to comment.