File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
driver/src/test/java/org/neo4j/driver Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 34
34
import org .neo4j .driver .Value ;
35
35
import org .neo4j .driver .exceptions .ClientException ;
36
36
import org .neo4j .driver .exceptions .NoSuchRecordException ;
37
+ import org .neo4j .driver .internal .util .Neo4jFeature ;
37
38
import org .neo4j .driver .summary .ResultSummary ;
38
39
import org .neo4j .driver .util .ParallelizableIT ;
39
40
import org .neo4j .driver .util .SessionExtension ;
@@ -281,6 +282,7 @@ void shouldConvertImmediatelyFailingStatementResultToStream()
281
282
}
282
283
283
284
@ Test
285
+ @ DisabledOnNeo4jWith ( Neo4jFeature .NO_STREAMING )
284
286
void shouldConvertEventuallyFailingStatementResultToStream ()
285
287
{
286
288
List <Integer > seen = new ArrayList <>();
Original file line number Diff line number Diff line change 94
94
import static org .neo4j .driver .internal .util .Matchers .arithmeticError ;
95
95
import static org .neo4j .driver .internal .util .Matchers .connectionAcquisitionTimeoutError ;
96
96
import static org .neo4j .driver .internal .util .Neo4jFeature .BOLT_V4 ;
97
+ import static org .neo4j .driver .internal .util .Neo4jFeature .NO_STREAMING ;
97
98
import static org .neo4j .driver .util .DaemonThreadFactory .daemon ;
98
99
import static org .neo4j .driver .util .Neo4jRunner .DEFAULT_AUTH_TOKEN ;
99
100
@@ -864,6 +865,7 @@ void shouldNotRetryOnConnectionAcquisitionTimeout()
864
865
}
865
866
866
867
@ Test
868
+ @ DisabledOnNeo4jWith ( NO_STREAMING )
867
869
void shouldAllowConsumingRecordsAfterFailureInSessionClose ()
868
870
{
869
871
Session session = neo4j .driver ().session ();
Original file line number Diff line number Diff line change 80
80
import static org .neo4j .driver .internal .util .Matchers .containsResultAvailableAfterAndResultConsumedAfter ;
81
81
import static org .neo4j .driver .internal .util .Matchers .syntaxError ;
82
82
import static org .neo4j .driver .internal .util .Neo4jFeature .BOLT_V3 ;
83
+ import static org .neo4j .driver .internal .util .Neo4jFeature .NO_STREAMING ;
83
84
import static org .neo4j .driver .util .TestUtil .await ;
84
85
import static org .neo4j .driver .util .TestUtil .awaitAll ;
85
86
@@ -155,6 +156,7 @@ void shouldFailForIncorrectQuery()
155
156
}
156
157
157
158
@ Test
159
+ @ DisabledOnNeo4jWith ( NO_STREAMING )
158
160
void shouldFailWhenQueryFailsAtRuntime ()
159
161
{
160
162
StatementResultCursor cursor = await ( session .runAsync ( "UNWIND [1, 2, 0] AS x RETURN 10 / x" ) );
Original file line number Diff line number Diff line change 26
26
27
27
import org .neo4j .driver .Record ;
28
28
import org .neo4j .driver .exceptions .ClientException ;
29
+ import org .neo4j .driver .internal .util .DisabledOnNeo4jWith ;
29
30
import org .neo4j .driver .internal .util .EnabledOnNeo4jWith ;
30
31
import org .neo4j .driver .reactive .RxStatementResult ;
31
32
import org .neo4j .driver .reactive .RxSession ;
44
45
import static org .junit .jupiter .api .Assertions .assertTrue ;
45
46
import static org .neo4j .driver .Values .parameters ;
46
47
import static org .neo4j .driver .internal .util .Neo4jFeature .BOLT_V4 ;
48
+ import static org .neo4j .driver .internal .util .Neo4jFeature .NO_STREAMING ;
47
49
48
50
@ EnabledOnNeo4jWith ( BOLT_V4 )
49
51
@ ParallelizableIT
@@ -281,6 +283,7 @@ void shouldDiscardRecords()
281
283
}
282
284
283
285
@ Test
286
+ @ DisabledOnNeo4jWith ( NO_STREAMING )
284
287
void shouldStreamCorrectRecordsBackBeforeError ()
285
288
{
286
289
RxSession session = neo4j .driver ().rxSession ();
Original file line number Diff line number Diff line change 19
19
package org .neo4j .driver .internal .util ;
20
20
21
21
import static java .util .Objects .requireNonNull ;
22
- import static org .neo4j .driver .internal .util .ServerVersion .v3_1_0 ;
23
- import static org .neo4j .driver .internal .util .ServerVersion .v3_2_0 ;
24
22
import static org .neo4j .driver .internal .util .ServerVersion .v3_4_0 ;
25
23
import static org .neo4j .driver .internal .util .ServerVersion .v3_5_0 ;
26
24
import static org .neo4j .driver .internal .util .ServerVersion .v4_0_0 ;
@@ -30,7 +28,8 @@ public enum Neo4jFeature
30
28
SPATIAL_TYPES ( v3_4_0 ),
31
29
TEMPORAL_TYPES ( v3_4_0 ),
32
30
BOLT_V3 ( v3_5_0 ),
33
- BOLT_V4 ( v4_0_0 );
31
+ BOLT_V4 ( v4_0_0 ),
32
+ NO_STREAMING ( v4_0_0 ); // the cypher cannot streaming records before error
34
33
35
34
private final ServerVersion availableFromVersion ;
36
35
You can’t perform that action at this time.
0 commit comments