From 41495ebfc0d81266892021ed9ba7ba3d01766c7d Mon Sep 17 00:00:00 2001 From: Oleg Baranov Date: Thu, 21 Mar 2024 18:43:13 +0400 Subject: [PATCH] Wait for next block in tests to confirm --- ton/jetton/integration_test.go | 2 +- ton/nft/integration_test.go | 2 +- ton/payments/integration_test.go | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ton/jetton/integration_test.go b/ton/jetton/integration_test.go index dba9de18..1b4e97dc 100644 --- a/ton/jetton/integration_test.go +++ b/ton/jetton/integration_test.go @@ -132,7 +132,7 @@ func TestJettonMasterClient_Transfer(t *testing.T) { } // wait next block to be sure everything updated - _, _ = api.WaitForBlock(block.SeqNo + 1).GetMasterchainInfo(ctx) + _, _ = api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(ctx) b2, err := tokenWallet.GetBalanceAtBlock(ctx, block) if err != nil { diff --git a/ton/nft/integration_test.go b/ton/nft/integration_test.go index 2b22f90e..e3dbe8d5 100644 --- a/ton/nft/integration_test.go +++ b/ton/nft/integration_test.go @@ -109,7 +109,7 @@ func Test_NftMintTransfer(t *testing.T) { } // wait next block to be sure everything updated - _, _ = api.WaitForBlock(block.SeqNo + 1).GetMasterchainInfo(ctx) + _, _ = api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(ctx) newData, err := nft.GetNFTDataAtBlock(ctx, block) if err != nil { diff --git a/ton/payments/integration_test.go b/ton/payments/integration_test.go index d8f2ef20..786d259e 100644 --- a/ton/payments/integration_test.go +++ b/ton/payments/integration_test.go @@ -73,6 +73,8 @@ func TestClient_DeployAsyncChannel(t *testing.T) { t.Fatal(fmt.Errorf("failed to deploy channel: %w", err)) } + client.api.WaitForBlock(block.SeqNo + 3).GetMasterchainInfo(context.Background()) + ch, err := client.GetAsyncChannel(context.Background(), block, channelAddr, true) if err != nil { t.Fatal(fmt.Errorf("failed to get channel: %w", err))