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.
This commit is contained in:
Ryan Graham 2015-01-15 22:51:53 -08:00
parent fbb091e3b3
commit 389b8c0e83
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);