Skip to content

Commit

Permalink
gmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bbroder-algo committed Apr 27, 2023
1 parent 50aa861 commit 4c09fe0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/e2e-go/restAPI/restClient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1529,17 +1529,17 @@ end:
operateBoxAndSendTxn("create", []string{string(boxTest.name)}, []string{""})
operateBoxAndSendTxn("set", []string{string(boxTest.name)}, []string{string(boxTest.value)})

currentRoundBeforeBoxes, err := testClient.CurrentRound()
a.NoError(err)
currentRoundBeforeBoxes, err := testClient.CurrentRound()
a.NoError(err)
boxResponse, err := testClient.GetApplicationBoxByName(uint64(createdAppID), boxTest.encodedName)
a.NoError(err)
currentRoundAfterBoxes, err := testClient.CurrentRound()
a.NoError(err)
currentRoundAfterBoxes, err := testClient.CurrentRound()
a.NoError(err)
a.Equal(boxTest.name, boxResponse.Name)
a.Equal(boxTest.value, boxResponse.Value)
// To reduce flakiness, only check the round from simulate is within a range.
a.GreaterOrEqual(result.LastRound, currentRoundBeforeBoxes)
a.LessOrEqual(result.LastRound, currentAfterAfterBoxes)
// To reduce flakiness, only check the round from simulate is within a range.
a.GreaterOrEqual(result.LastRound, currentRoundBeforeBoxes)
a.LessOrEqual(result.LastRound, currentAfterAfterBoxes)
}

const numberOfBoxesRemaining = uint64(3)
Expand Down

0 comments on commit 4c09fe0

Please sign in to comment.