We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef2d47 commit c4d6a84Copy full SHA for c4d6a84
packages/firestore/test/unit/specs/spec_test_components.ts
@@ -51,8 +51,10 @@ export class MockMemoryPersistence extends MemoryPersistence {
51
transaction: PersistenceTransaction
52
) => PersistencePromise<T>
53
): Promise<T> {
54
- if (this.injectFailures) {
55
- return Promise.reject(new Error('Injected Failure'));
+ if (this.injectFailures) {
+ return Promise.reject(
56
+ new IndexedDbTransactionError(new Error('Simulated retryable error'))
57
+ );
58
} else {
59
return super.runTransaction(action, mode, transactionOperation);
60
}
0 commit comments