test: specify 127.0.0.1 for test server

Without this the client may attempt to connect to 'localhost' which may
resolve to the IPv6 equivalent of '0.0.0.0', which is '::', which is
only useful listening on and not so useful for connecting too.
This commit is contained in:
Ryan Graham 2015-07-20 18:58:17 -07:00
parent 71521b12a3
commit 56e6236fa3
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ describe('RemoteConnector', function() {
remoteApp.use(loopback.rest());
remoteApp.listen(0, function() {
test.dataSource = loopback.createDataSource({
host: remoteApp.get('host'),
host: '127.0.0.1',
port: remoteApp.get('port'),
connector: loopback.Remote
});
@ -40,7 +40,7 @@ describe('RemoteConnector', function() {
remoteApp.listen(0, function() {
test.remote = loopback.createDataSource({
host: remoteApp.get('host'),
host: '127.0.0.1',
port: remoteApp.get('port'),
connector: loopback.Remote
});