|
38 | 38 | * remote the transport reaches" is, off the timed path, and that is the |
39 | 39 | * anti-vacuity guard the case actually needs. |
40 | 40 | * |
| 41 | + * Both latch assertions carry a failure message naming their bound, so a red |
| 42 | + * says in words that a DURATION went unmet. Merge-queue triage classifies a red |
| 43 | + * by asking whether the assertion names a duration; a bare `expected 0 to be |
| 44 | + * greater than 0` from a sampled counter answers no and is read as a behaviour |
| 45 | + * regression, which is exactly how this file's flake was first read. |
| 46 | + * |
41 | 47 | * Each arm carries a NEGATIVE control — the same stalled remote with no |
42 | 48 | * `timeout` (and, on the replica arm, `timeout: 0`, the documented "no bound") |
43 | 49 | * is still pending well past the window — so the failure the positive case |
@@ -154,7 +160,10 @@ describe('TursoDriverConfig.timeout — remote mode over HTTP', () => { |
154 | 160 | cleanups.push(() => reachable.disconnect()); |
155 | 161 | // Settles only when the fixture tears the socket down; nobody reads that. |
156 | 162 | reachable.find('probe', {}).catch(() => {}); |
157 | | - expect(await settlesWithin(remote.firstRequest, REACH_BOUND_MS)).toBe(true); |
| 163 | + expect( |
| 164 | + await settlesWithin(remote.firstRequest, REACH_BOUND_MS), |
| 165 | + `the HTTP transport did not reach the stalled fixture within ${REACH_BOUND_MS} ms`, |
| 166 | + ).toBe(true); |
158 | 167 |
|
159 | 168 | const driver = new TursoDriver({ url: remote.url, timeout: WINDOW_MS }); |
160 | 169 | expect(driver.transportMode).toBe('remote'); |
@@ -188,7 +197,10 @@ describe('TursoDriverConfig.timeout — remote mode over HTTP', () => { |
188 | 197 | expect(await stillPendingAfter(operation, CONTROL_WAIT_MS)).toBe(PENDING); |
189 | 198 | // Same latch, same reason: nothing bounds this operation, so the request is |
190 | 199 | // reached and the condition is awaited, never sampled at a chosen instant. |
191 | | - expect(await settlesWithin(remote.firstRequest, REACH_BOUND_MS)).toBe(true); |
| 200 | + expect( |
| 201 | + await settlesWithin(remote.firstRequest, REACH_BOUND_MS), |
| 202 | + `the HTTP transport did not reach the stalled fixture within ${REACH_BOUND_MS} ms`, |
| 203 | + ).toBe(true); |
192 | 204 | }); |
193 | 205 | }); |
194 | 206 |
|
|
0 commit comments