Skip to content

Commit

Permalink
tests: make TestBasicPayouts less flaky (algorand#5996)
Browse files Browse the repository at this point in the history
Co-authored-by: John Jannotti <[email protected]>
  • Loading branch information
algorandskiy and jannotti authored May 9, 2024
1 parent c7d281e commit 5ac3edc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e-go/features/incentives/payouts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func TestBasicPayouts(t *testing.T) {
a.NoError(err)
burn, err := fixture.WaitForConfirmedTxn(uint64(txn.LastValid), txn.ID().String())
a.NoError(err)
// sync up with the network
_, err = c01.WaitForRound(*burn.ConfirmedRound)
a.NoError(err)
data01, err = c01.AccountData(account01.Address)
a.NoError(err)

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

0 comments on commit 5ac3edc

Please sign in to comment.