Skip to content

Commit e3580f7

Browse files
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.
1 parent 012e58b commit e3580f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/test-execution-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class TestExecutionService implements ITestExecutionService {
157157
private generateConfig(port: string, options: any): string {
158158
let nics = os.networkInterfaces();
159159
let ips = Object.keys(nics)
160-
.map(nicName => nics[nicName].filter((binding: any) => binding.family === 'IPv4' && !binding.internal)[0])
160+
.map(nicName => nics[nicName].filter((binding: any) => binding.family === 'IPv4')[0])
161161
.filter(binding => binding)
162162
.map(binding => binding.address);
163163

0 commit comments

Comments
 (0)