Skip to content

Commit 3ab0f14

Browse files
author
Petra Selmer
committed
Changed localhost -> myserver:7687 in examples
1 parent 2d3dadd commit 3ab0f14

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/v1/examples.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('examples', function() {
3434
beforeEach(function(done) {
3535
var neo4j = neo4jv1;
3636
//tag::construct-driver[]
37-
driverGlobal = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
37+
driverGlobal = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"));
3838
//end::construct-driver[]
3939
sessionGlobal = driverGlobal.session();
4040

@@ -59,13 +59,13 @@ describe('examples', function() {
5959
var neo4j = require('neo4j-driver').v1;
6060
// end::minimal-example-import[]
6161
// tag::minimal-example[]
62-
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
62+
var driver = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"));
6363
var session = driver.session();
6464
session
6565
.run( "CREATE (a:Person {name:'Arthur', title:'King'})" )
6666
.then( function()
6767
{
68-
return session.run( "MATCH (a:Person) WHERE a.name = 'Arthur' RETURN a.name AS name, a.title AS title" )
68+
return session.run( "MATCH (a:Person) WHERE a.name = 'Arthur' RETURN a.name AS name, a.title AS title" )
6969
})
7070
.then( function( result ) {
7171
console.log( result.records[0].get("title") + " " + result.records[0].get("name") );
@@ -82,7 +82,7 @@ describe('examples', function() {
8282
it('should be able to configure session pool size', function (done) {
8383
var neo4j = neo4jv1;
8484
// tag::configuration[]
85-
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"), {connectionPoolSize: 50});
85+
var driver = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"), {connectionPoolSize: 50});
8686
//end::configuration[]
8787

8888
var s = driver.session();
@@ -343,7 +343,7 @@ describe('examples', function() {
343343

344344
var neo4j = neo4jv1;
345345
// tag::tls-require-encryption[]
346-
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"), {
346+
var driver = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"), {
347347
// In NodeJS, encryption is on by default. In the web bundle, it is off.
348348
encrypted:true
349349
});
@@ -354,7 +354,7 @@ describe('examples', function() {
354354
it('should document how to configure trust-on-first-use', function() {
355355
var neo4j = neo4jv1;
356356
// tag::tls-trust-on-first-use[]
357-
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"), {
357+
var driver = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"), {
358358
// Note that trust-on-first-use is not available in the browser bundle,
359359
// in NodeJS, trust-on-first-use is the default trust mode. In the browser
360360
// it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
@@ -368,7 +368,7 @@ describe('examples', function() {
368368
it('should document how to configure a trusted signing certificate', function() {
369369
var neo4j = neo4jv1;
370370
// tag::tls-signed[]
371-
var driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"), {
371+
var driver = neo4j.driver("bolt://myserver:7687", neo4j.auth.basic("neo4j", "neo4j"), {
372372
trust: "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES",
373373
// Configuring which certificates to trust here is only available
374374
// in NodeJS. In the browser bundle the browsers list of trusted
@@ -383,7 +383,7 @@ describe('examples', function() {
383383
it('should document how to disable auth', function() {
384384
var neo4j = neo4jv1;
385385
// tag::connect-with-auth-disabled[]
386-
var driver = neo4j.driver("bolt://localhost", {
386+
var driver = neo4j.driver("bolt://myserver:7687", {
387387
// In NodeJS, encryption is on by default. In the web bundle, it is off.
388388
encrypted:true
389389
});

0 commit comments

Comments
 (0)