Skip to content

Commit 6ea51fb

Browse files
authored
Firestore: local_store_indexeddb.test.ts: fix spurious errors when calling persistence.shutdown() after a setup failure. (#7922)
1 parent 7f78362 commit 6ea51fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ describe('LocalStore w/ IndexedDB Persistence (Non generic)', () => {
248248
});
249249

250250
afterEach(async () => {
251-
await persistence.shutdown();
251+
await persistence?.shutdown();
252252
await persistenceHelpers.clearTestPersistence();
253253
});
254254

0 commit comments

Comments
 (0)