Skip to content

Commit

Permalink
map: Fix MapBatch test for BatchLookupAndDelete case
Browse files Browse the repository at this point in the history
Signed-off-by: Alun Evans <alun@badgerous.net>
  • Loading branch information
alxn authored and lmb committed Dec 7, 2023
1 parent 6d15172 commit 14adc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ func TestMapBatch(t *testing.T) {
}
qt.Assert(t, qt.IsNil(err))

qt.Assert(t, qt.Equals(count, len(lookupKeys)))
for i, key := range lookupKeys {
qt.Assert(t, qt.IsTrue(count <= len(lookupKeys)))
for i, key := range lookupKeys[:count] {
value := lookupValues[i]
qt.Assert(t, qt.Equals(value, contents[key]), qt.Commentf("value for key %d should match", key))
}
Expand Down

0 comments on commit 14adc78

Please sign in to comment.