From e3580f7abeeca6ced0915b4c77bd0056a9819150 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Tue, 15 Mar 2016 21:58:18 +0200 Subject: [PATCH] Enable using localhost as ip for tests When using iOS Simulator we need the localhost enabled as ip for karma. This does not break the Android tests, so enable it for all configurations. --- lib/services/test-execution-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/test-execution-service.ts b/lib/services/test-execution-service.ts index a782816ac3..30899d869e 100644 --- a/lib/services/test-execution-service.ts +++ b/lib/services/test-execution-service.ts @@ -157,7 +157,7 @@ class TestExecutionService implements ITestExecutionService { private generateConfig(port: string, options: any): string { let nics = os.networkInterfaces(); let ips = Object.keys(nics) - .map(nicName => nics[nicName].filter((binding: any) => binding.family === 'IPv4' && !binding.internal)[0]) + .map(nicName => nics[nicName].filter((binding: any) => binding.family === 'IPv4')[0]) .filter(binding => binding) .map(binding => binding.address);