Commit b1ceed6
committed
test(e2e): retry session.create through server session-route warmup
Under the heaviest local parallel run, session.create can return an empty body
(no res.data) even though waitForReady already saw the server answer /doc: the
HTTP listener is up but the session route is still warming, so the very first
create right after boot transiently fails with empty stderr/stdout. This is
harness readiness gating, not a product retry — no session exists yet, so
nothing under test has executed. Retry create up to 5 times with linear backoff;
a server that is genuinely down still throws with captured output after the
attempts are exhausted. Shared by createSession and createChildSession.1 parent c817f8a commit b1ceed6
1 file changed
Lines changed: 37 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
105 | 127 | | |
106 | | - | |
| 128 | + | |
107 | 129 | | |
108 | 130 | | |
109 | | - | |
| 131 | + | |
| 132 | + | |
110 | 133 | | |
111 | 134 | | |
112 | 135 | | |
| |||
120 | 143 | | |
121 | 144 | | |
122 | 145 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
133 | 154 | | |
134 | 155 | | |
135 | 156 | | |
| |||
0 commit comments