Commit 6f89318
Fix stale cache-header assertion in test_server
'select *' is invalid SQL, so /api/query returns 200 with success=false.
The test asserted that error response got max-age=3600, which stopped
being true once we stopped caching errors. Assert both cases instead:
a valid query is cached, a failed one isn't.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 203cf4d commit 6f89318
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments