File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
driver/src/test/java/org/neo4j/driver/v1 Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ public class SessionResetIT
115
115
@ Before
116
116
public void setUp ()
117
117
{
118
+ assumeTrue ( neo4j .version ().greaterThanOrEqual ( v3_1_0 ) );
118
119
executor = Executors .newCachedThreadPool ( daemon ( getClass ().getSimpleName () + "-thread" ) );
119
120
}
120
121
Original file line number Diff line number Diff line change 47
47
import static org .junit .Assert .assertEquals ;
48
48
import static org .junit .Assert .assertNotNull ;
49
49
import static org .junit .Assert .fail ;
50
+ import static org .junit .Assume .assumeTrue ;
50
51
import static org .mockito .Matchers .any ;
51
52
import static org .mockito .Matchers .eq ;
52
53
import static org .mockito .Mockito .doAnswer ;
53
54
import static org .mockito .Mockito .mock ;
55
+ import static org .neo4j .driver .internal .util .ServerVersion .v3_1_0 ;
56
+ import static org .neo4j .driver .internal .util .ServerVersion .version ;
54
57
55
58
public final class TestUtil
56
59
{
@@ -214,6 +217,9 @@ public static int activeQueryCount( Driver driver )
214
217
215
218
public static List <String > activeQueryNames ( Driver driver )
216
219
{
220
+ // procedure dbms.listQueries() is only supported starting from 3.1
221
+ assumeTrue ( version ( driver ).greaterThanOrEqual ( v3_1_0 ) );
222
+
217
223
try ( Session session = driver .session () )
218
224
{
219
225
return session .run ( "CALL dbms.listQueries() YIELD query RETURN query" )
You can’t perform that action at this time.
0 commit comments