Skip to content

Commit

Permalink
exchange the expected and actual values in assert
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Jul 1, 2024
1 parent a865983 commit db77122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/db/ledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func BenchmarkGetLedgerRange(b *testing.B) {
for range b.N {
ledgerRange, err := reader.GetLedgerRange(context.TODO())
require.NoError(b, err)
assert.Equal(b, ledgerRange.FirstLedger.Sequence, lcms[0].LedgerSequence())
assert.Equal(b, ledgerRange.LastLedger.Sequence, lcms[len(lcms)-1].LedgerSequence())
assert.Equal(b, lcms[0].LedgerSequence(), ledgerRange.FirstLedger.Sequence)
assert.Equal(b, lcms[len(lcms)-1].LedgerSequence(), ledgerRange.LastLedger.Sequence)
}
}

Expand Down

0 comments on commit db77122

Please sign in to comment.