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', () => {
6060 'NEO4J_PASSWORD' ,
6161 sharedNeo4j . authToken . credentials
6262 )
63+
64+ function isRemoteCluster ( ) {
65+ return (
66+ fromEnvOrDefault ( 'STRESS_TEST_DATABASE_URI' ) !== undefined &&
67+ fromEnvOrDefault ( 'STRESS_TEST_DATABASE_URI' ) !== undefined
68+ )
69+ }
70+
6371 const LOGGING_ENABLED = fromEnvOrDefault ( 'STRESS_TEST_LOGGING_ENABLED' , false )
6472
6573 let originalTimeout
@@ -71,7 +79,7 @@ describe('#integration stress tests', () => {
7179
7280 const config = {
7381 logging : neo4j . logging . console ( LOGGING_ENABLED ? 'debug' : 'info' ) ,
74- encrypted : true
82+ encrypted : isRemoteCluster ( )
7583 }
7684 driver = neo4j . driver (
7785 DATABASE_URI ,
@@ -574,7 +582,7 @@ describe('#integration stress tests', () => {
574582 return mode
575583 }
576584
577- function fromEnvOrDefault ( envVariableName , defaultValue ) {
585+ function fromEnvOrDefault ( envVariableName , defaultValue = undefined ) {
578586 if ( process && process . env && process . env [ envVariableName ] ) {
579587 return process . env [ envVariableName ]
580588 }
You can’t perform that action at this time.
0 commit comments