Repository navigation
Commit f247110
committed
test(apple-runner): hang up on every read attempt without counting the connect loop
The read-only lost-response driver scripted 20 hang-ups and a 400 ms
timeout. That count depended on the connect loop's retry cadence
(RUNNER_CONNECT_ATTEMPT_INTERVAL_MS): with a faster cadence the queue runs
out, and the fake answers the next attempt with `ok`. The fake runner
server now has a `hangUpAlways` reply that is never consumed, so the read
is refused until the loop gives up, however often it retries. The timeout
now only bounds how long the loop runs.
Mutation: set RUNNER_CONNECT_ATTEMPT_INTERVAL_MS to 10 or 50 (with a 1 ms
retry base delay) -> ios-runner.status.read-only-completed-without-retained-reply
still passes.1 parent 50fc6fc commit f247110
2 files changed
Lines changed: 14 additions & 9 deletions
File tree
- packages/platform-apple/src/runner/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments