Skip to content

Commit 6fba771

Browse files
committed
Add scenario for 1 events per revison TestWatchBatchUnsynced
Signed-off-by: Marek Siarkowicz <[email protected]>
1 parent 2210de3 commit 6fba771

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

server/storage/mvcc/watchable_store_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,17 @@ func TestWatchBatchUnsynced(t *testing.T) {
403403
eventsPerRevision int
404404
expectRevisionBatches [][]int64
405405
}{
406+
{
407+
name: "3 batches, 4 revs per batch, 1 events per revision",
408+
batches: 3,
409+
watchBatchMaxRevs: 4,
410+
eventsPerRevision: 1,
411+
expectRevisionBatches: [][]int64{
412+
{2, 3, 4, 5},
413+
{6, 7, 8, 9},
414+
{10, 11, 12, 13},
415+
},
416+
},
406417
{
407418
name: "3 batches, 4 revs per batch, 3 events per revision",
408419
batches: 3,

0 commit comments

Comments
 (0)