Commit fc94615
fix(rn): remove stale adb reverse rules before setting new ones
The Metro connection issue was caused by stale port forwarding rules
from previous test runs. When an emulator persists between runs (dev mode),
old adb reverse rules stay active and conflict with new Metro ports.
Solution:
- Remove existing tcp:8081 reverse before setting new one
- Verify the reverse is active with `adb reverse --list`
- This ensures clean state for each test run
Fixes the "Unable to load script" error that occurred when:
1. Metro allocated port 8091 (or any non-8081 port)
2. Old reverse rule forwarded 8081 -> old Metro port (or didn't exist)
3. App tried to connect to localhost:8081 and failed
Note: adb reverse is NOT a long-lived process - it sets up forwarding
in the adb daemon and exits. The forwarding persists until removed or
the emulator is stopped.
Changes:
- test-suite-android-e2e.yaml: Remove old reverse, verify new one
- test-suite-all-e2e.yaml: Remove old reverse, verify new one
- Updated device lock files from test runs
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent b505edd commit fc94615
5 files changed
Lines changed: 21 additions & 3 deletions
File tree
- examples
- android/devbox.d/android/devices
- react-native
- devbox.d
- android/devices
- ios/devices
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
243 | 252 | | |
244 | 253 | | |
245 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
141 | 150 | | |
142 | 151 | | |
143 | 152 | | |
| |||
0 commit comments