Skip to content

Commit e6cb0c2

Browse files
Fix Firestore Performance spec test (#2594)
These tests are only run on demand. One of the tests broke when we stopped accepting zero version documents in the RemoteDocumentCache
1 parent 6898eb8 commit e6cb0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/test/unit/specs/perf_spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describeSpec(
3434
for (let i = 0; i < STEP_COUNT; ++i) {
3535
steps
3636
.userSets(`collection/{i}`, { doc: i })
37-
.writeAcks(`collection/{i}`, i);
37+
.writeAcks(`collection/{i}`, i + 1); // Prevent zero version
3838
}
3939
return steps;
4040
});

0 commit comments

Comments
 (0)