diff --git a/test/e2e-go/features/transactions/asset_test.go b/test/e2e-go/features/transactions/asset_test.go index 97528a3ef2..0daff2734d 100644 --- a/test/e2e-go/features/transactions/asset_test.go +++ b/test/e2e-go/features/transactions/asset_test.go @@ -632,10 +632,19 @@ func TestAssetGroupCreateSendDestroy(t *testing.T) { err = client0.BroadcastTransactionGroup(stxns) a.NoError(err) - _, curRound := fixture.GetBalanceAndRound(account0) - confirmed := fixture.WaitForAllTxnsToConfirm(curRound+5, txids) + status0, err := client0.Status() + a.NoError(err) + + confirmed := fixture.WaitForAllTxnsToConfirm(status0.LastRound+5, txids) a.True(confirmed) + status0, err = client0.Status() + a.NoError(err) + + // wait for client1 to reach the same round as client0 + _, err = client1.WaitForRound(status0.LastRound) + a.NoError(err) + txids = make(map[string]string) // asset 1 (create + send) exists and available @@ -651,10 +660,18 @@ func TestAssetGroupCreateSendDestroy(t *testing.T) { a.NoError(err) txids[txid] = account0 - _, curRound = fixture.GetBalanceAndRound(account0) - confirmed = fixture.WaitForAllTxnsToConfirm(curRound+5, txids) + status0, err = client0.Status() + a.NoError(err) + confirmed = fixture.WaitForAllTxnsToConfirm(status0.LastRound+5, txids) a.True(confirmed) + status0, err = client0.Status() + a.NoError(err) + + // wait for client1 to reach the same round as client0 + _, err = client1.WaitForRound(status0.LastRound) + a.NoError(err) + // asset 3 (create + destroy) not available _, err = client1.AssetInformation(assetID3) a.Error(err)