Skip to content

Commit 5ac3edc

Browse files
tests: make TestBasicPayouts less flaky (#5996)
Co-authored-by: John Jannotti <[email protected]>
1 parent c7d281e commit 5ac3edc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/e2e-go/features/incentives/payouts_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ func TestBasicPayouts(t *testing.T) {
8181
a.NoError(err)
8282
burn, err := fixture.WaitForConfirmedTxn(uint64(txn.LastValid), txn.ID().String())
8383
a.NoError(err)
84+
// sync up with the network
85+
_, err = c01.WaitForRound(*burn.ConfirmedRound)
86+
a.NoError(err)
8487
data01, err = c01.AccountData(account01.Address)
8588
a.NoError(err)
8689

@@ -344,6 +347,9 @@ func rekeyreg(f *fixtures.RestClientFixture, a *require.Assertions, client libgo
344347
a.NoError(err)
345348
txn, err := f.WaitForConfirmedTxn(uint64(reReg.LastValid), onlineTxID)
346349
a.NoError(err)
350+
// sync up with the network
351+
_, err = client.WaitForRound(*txn.ConfirmedRound)
352+
a.NoError(err)
347353
data, err = client.AccountData(address)
348354
a.NoError(err)
349355
a.Equal(basics.Online, data.Status)

0 commit comments

Comments
 (0)