File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -879,11 +879,10 @@ export class LocalStore {
879
879
keepPersistedTargetData : boolean
880
880
) : Promise < void > {
881
881
const targetData = this . targetDataByTarget . get ( targetId ) ;
882
-
883
- if ( targetData === null ) {
884
- logDebug ( `Ignoring release of nonexistent target: ${ targetId } ` ) ;
885
- return Promise . resolve ( ) ;
886
- }
882
+ debugAssert (
883
+ targetData !== null ,
884
+ `Tried to release nonexistent target: ${ targetId } `
885
+ ) ;
887
886
888
887
const mode = keepPersistedTargetData ? 'readwrite' : 'readwrite-primary' ;
889
888
return this . persistence
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ describeSpec(
102
102
// The primary client 0 receives a notification that the query can
103
103
// be released, but it can only process the change after we recover
104
104
// the database.
105
+ . expectActiveTargets ( { query} )
105
106
. recoverDatabase ( )
106
107
. runTimer ( TimerId . AsyncQueueRetry )
107
108
. expectActiveTargets ( )
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ export class SpecBuilder {
446
446
447
447
/** Overrides the currently expected set of active targets. */
448
448
expectActiveTargets (
449
- ...targets : Array < { query : Query ; resumeToken : string } >
449
+ ...targets : Array < { query : Query ; resumeToken ? : string } >
450
450
) : this {
451
451
this . assertStep ( 'Active target expectation requires previous step' ) ;
452
452
const currentStep = this . currentStep ! ;
You can’t perform that action at this time.
0 commit comments