Skip to content

Commit ebbe178

Browse files
committed
fix mistake with require length check
1 parent 90b22fd commit ebbe178

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rest/blip_legacy_revid_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ func TestDeltaSyncSendHistoryWithLegacyClient(t *testing.T) {
720720
require.NotEmpty(t, history, "history must not be empty — rev tree history is required for legacy client conflict detection")
721721
historyList := strings.Split(history, ",")
722722
// The last two entries in history should be the rev tree: current revID then parent revID
723-
require.Len(t, len(historyList), 2, "history should rev tree entries only since hlv history is empty for this doc")
723+
require.Len(t, historyList, 2, "history should rev tree entries only since hlv history is empty for this doc")
724724
assert.Equal(t, docVersion2.RevTreeID, historyList[len(historyList)-2], "second to last history entry should be current revTreeID")
725725
assert.Equal(t, docVersion1.RevTreeID, historyList[len(historyList)-1], "last history entry should be parent revTreeID")
726726

0 commit comments

Comments
 (0)