File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ class ResultStreamObserver extends StreamObserver {
97
97
this . _discardFunction = discardFunction
98
98
this . _discard = false
99
99
this . _fetchSize = fetchSize
100
+ this . _finished = false
100
101
}
101
102
102
103
/**
@@ -188,6 +189,7 @@ class ResultStreamObserver extends StreamObserver {
188
189
189
190
delete meta . has_more
190
191
} else {
192
+ this . _finished = true
191
193
const completionMetadata = Object . assign (
192
194
this . _connection ? { server : this . _connection . server } : { } ,
193
195
this . _meta ,
@@ -279,6 +281,7 @@ class ResultStreamObserver extends StreamObserver {
279
281
this . _head = [ ]
280
282
this . _fieldKeys = [ ]
281
283
this . _tail = { }
284
+ this . _finished = true
282
285
}
283
286
284
287
/**
@@ -299,6 +302,7 @@ class ResultStreamObserver extends StreamObserver {
299
302
return
300
303
}
301
304
305
+ this . _finished = true
302
306
this . _hasFailed = true
303
307
this . _error = error
304
308
@@ -354,7 +358,7 @@ class ResultStreamObserver extends StreamObserver {
354
358
}
355
359
this . _observers . push ( observer )
356
360
357
- if ( this . _reactive ) {
361
+ if ( this . _reactive && ! this . _finished ) {
358
362
this . _handleStreaming ( )
359
363
}
360
364
}
Original file line number Diff line number Diff line change @@ -670,7 +670,7 @@ describe('#integration-rx summary', () => {
670
670
671
671
const indices = await session . run ( 'CALL db.indexes()' )
672
672
for ( let i = 0 ; i < indices . records . length ; i ++ ) {
673
- await session . run ( `DROP ${ getName ( indices . records [ i ] ) } ` )
673
+ await session . run ( `DROP INDEX ${ getName ( indices . records [ i ] ) } ` )
674
674
}
675
675
} finally {
676
676
await session . close ( )
You can’t perform that action at this time.
0 commit comments