Skip to content

Commit acca80b

Browse files
committed
add comments
1 parent 3489ac8 commit acca80b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mongo/client_bulk_write_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ func TestBatches(t *testing.T) {
5353
},
5454
}
5555
var n int
56-
n, _, err = batches.AppendBatchSequence(nil, 4, 16_000, 16_000)
56+
const limitBigEnough = 16_000
57+
// test the "maxCount" that truncates the output
58+
n, _, err = batches.AppendBatchSequence(nil, 4, limitBigEnough, limitBigEnough)
5759
require.NoError(t, err, "AppendBatchSequence error: %v", err)
5860
assert.Equal(t, 3, n, "expected %d appendings, got: %d", 3, n)
5961

0 commit comments

Comments
 (0)