Skip to content

Commit 0b0355b

Browse files
committed
Make chunk breakdown comment more clear
See #68 (comment)
1 parent 991e91c commit 0b0355b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/msc2716_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func TestBackfillingHistory(t *testing.T) {
142142
// Order events from newest to oldest
143143
expectedEventIDOrder = reversed(expectedEventIDOrder)
144144

145-
// 2 eventIDsBefore + 6 historical events + 3 insertion events + 2 eventIDsAfter
145+
// 2 eventIDsBefore + [1 insertion event + 2 historical events + 1 insertion event] + [2 historical events + 1 insertion event] + 2 eventIDsAfter
146+
// ^ chunk1 ^ chunk2
146147
if len(expectedEventIDOrder) != 13 {
147148
t.Fatalf("Expected eventID list should be length 13 but saw %d: %s", len(expectedEventIDOrder), expectedEventIDOrder)
148149
}
@@ -519,7 +520,7 @@ func TestBackfillingHistory(t *testing.T) {
519520
historicalEventIDs := getEventsFromBatchSendResponseBody(t, batchSendResBody)
520521
baseInsertionEventID := historicalEventIDs[len(historicalEventIDs)-1]
521522

522-
// 2 historical events + 2 insertion events
523+
// [1 insertion event + 2 historical events + 1 insertion event]
523524
if len(historicalEventIDs) != 4 {
524525
t.Fatalf("Expected eventID list should be length 15 but saw %d: %s", len(historicalEventIDs), historicalEventIDs)
525526
}

0 commit comments

Comments
 (0)