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:
parent
fbb091e3b3
commit
389b8c0e83
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue