File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ describe('#integration stress tests', () => {
60
60
'NEO4J_PASSWORD' ,
61
61
sharedNeo4j . authToken . credentials
62
62
)
63
+
64
+ function isRemoteCluster ( ) {
65
+ return (
66
+ fromEnvOrDefault ( 'STRESS_TEST_DATABASE_URI' ) !== undefined &&
67
+ fromEnvOrDefault ( 'STRESS_TEST_DATABASE_URI' ) !== undefined
68
+ )
69
+ }
70
+
63
71
const LOGGING_ENABLED = fromEnvOrDefault ( 'STRESS_TEST_LOGGING_ENABLED' , false )
64
72
65
73
let originalTimeout
@@ -71,7 +79,7 @@ describe('#integration stress tests', () => {
71
79
72
80
const config = {
73
81
logging : neo4j . logging . console ( LOGGING_ENABLED ? 'debug' : 'info' ) ,
74
- encrypted : true
82
+ encrypted : isRemoteCluster ( )
75
83
}
76
84
driver = neo4j . driver (
77
85
DATABASE_URI ,
@@ -574,7 +582,7 @@ describe('#integration stress tests', () => {
574
582
return mode
575
583
}
576
584
577
- function fromEnvOrDefault ( envVariableName , defaultValue ) {
585
+ function fromEnvOrDefault ( envVariableName , defaultValue = undefined ) {
578
586
if ( process && process . env && process . env [ envVariableName ] ) {
579
587
return process . env [ envVariableName ]
580
588
}
You can’t perform that action at this time.
0 commit comments