Skip to content

Commit f0106a6

Browse files
test(e2e): exclude fixture hosts from android device proxy
Co-authored-by: javiergarciavera <javiergarciavera@users.noreply.github.com>
1 parent 55c0903 commit f0106a6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/framework/fixtures/FixtureUtils.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,17 @@ export async function enableDeviceTrafficProxyForMockServer(
149149

150150
const proxyHost = '127.0.0.1';
151151
const proxyPort = FALLBACK_MOCKSERVER_PORT;
152-
const exclusionList = 'localhost,127.0.0.1,10.0.2.2';
152+
const exclusionHosts = [
153+
'localhost',
154+
'127.0.0.1',
155+
'10.0.2.2',
156+
'bs-local.com',
157+
// Android system connectivity probes should not affect mock validation.
158+
'connectivitycheck.gstatic.com',
159+
'play.googleapis.com',
160+
'www.google.com',
161+
];
162+
const exclusionList = exclusionHosts.join(',');
153163

154164
await execAsync(
155165
`adb ${deviceFlag} shell settings put global http_proxy ${proxyHost}:${proxyPort}`,

0 commit comments

Comments
 (0)