Skip to content

Commit

Permalink
Wait for next block in tests to confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
xssnick committed Mar 21, 2024
1 parent 9f4efb5 commit 0a6bd7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ton/jetton/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestJettonMasterClient_Transfer(t *testing.T) {
}

// wait next block to be sure everything updated
block, err = api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(ctx)
block, err = api.WaitForBlock(block.SeqNo + 7).GetMasterchainInfo(ctx)
if err != nil {
t.Fatal("Wait master err:", err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion ton/nft/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Test_NftMintTransfer(t *testing.T) {
}

// wait next block to be sure everything updated
block, err = api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(ctx)
block, err = api.WaitForBlock(block.SeqNo + 7).GetMasterchainInfo(ctx)
if err != nil {
t.Fatal("Wait master err:", err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion ton/payments/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestClient_DeployAsyncChannel(t *testing.T) {
t.Fatal(fmt.Errorf("failed to deploy channel: %w", err))
}

block, err = client.api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(context.Background())
block, err = client.api.WaitForBlock(block.SeqNo + 7).GetMasterchainInfo(context.Background())
if err != nil {
t.Fatal(fmt.Errorf("failed to wait block: %w", err))
}
Expand Down

0 comments on commit 0a6bd7a

Please sign in to comment.