Commit 9185ef0
fix(unitTests/testApp): use HARPER_TEST_HOST for CacheOfHttp self-fetches
resources.js runs inside the Harper instance and fetches back from itself
via HTTP. When the test server is bound to a loopback address other than
localhost, the hardcoded http://localhost:9926 fetch fails. Read
HARPER_TEST_HOST (set by setupTestApp) to build the correct origin.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c5c9d65 commit 9185ef0
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments