Skip to content

Commit d3669b6

Browse files
Unit test fix
1 parent e4cdfe0 commit d3669b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firestore/test/unit/local/simple_db.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ describe('SimpleDb', () => {
566566
let attemptCount = 0;
567567

568568
await expect(
569-
db.runTransaction('readonly', /* idempotent= */ true, ['users'], txn => {
569+
db.runTransaction('readwrite', /* idempotent= */ true, ['users'], txn => {
570570
++attemptCount;
571571
txn.abort();
572572
return PersistencePromise.reject(new Error('Aborted'));
@@ -580,7 +580,7 @@ describe('SimpleDb', () => {
580580
let attemptCount = 0;
581581

582582
await expect(
583-
db.runTransaction('readonly', /* idempotent= */ false, ['users'], txn => {
583+
db.runTransaction('readwrite', /* idempotent= */ false, ['users'], txn => {
584584
++attemptCount;
585585
const store = txn.store<string[], typeof dummyUser>('users');
586586
return store

0 commit comments

Comments
 (0)