From 389b8c0e83727bebd6e006b91f3d166b4badee6f Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Thu, 15 Jan 2015 22:51:53 -0800 Subject: [PATCH] test: use 127.0.0.1 instead of localhost More portable for dual-stack environments where localhost may mean ::1, which is the IPv6 equivalent of 127.0.0.1, but not actually the same. --- test/e2e/remote-connector.e2e.js | 2 +- test/e2e/replication.e2e.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/remote-connector.e2e.js b/test/e2e/remote-connector.e2e.js index a1f3332c..1a342471 100644 --- a/test/e2e/remote-connector.e2e.js +++ b/test/e2e/remote-connector.e2e.js @@ -8,7 +8,7 @@ describe('RemoteConnector', function() { before(function() { // setup the remote connector var ds = loopback.createDataSource({ - url: 'http://localhost:3000/api', + url: 'http://127.0.0.1:3000/api', connector: loopback.Remote }); TestModel.attachTo(ds); diff --git a/test/e2e/replication.e2e.js b/test/e2e/replication.e2e.js index 502059a7..24f6967e 100644 --- a/test/e2e/replication.e2e.js +++ b/test/e2e/replication.e2e.js @@ -11,7 +11,7 @@ describe('Replication', function() { before(function() { // setup the remote connector var ds = loopback.createDataSource({ - url: 'http://localhost:3000/api', + url: 'http://127.0.0.1:3000/api', connector: loopback.Remote }); TestModel.attachTo(ds);