Commit 56305b6
fix(test): stop GoogleEventsTest NPE on empty events_results
The google_events engine returned no events_results for q=coffee, so
getAsJsonArray returned null and .size() threw an NPE, failing CI.
Use a location-scoped query, assert non-null with the response body in
the message so future failures are diagnosable, and relax the size
threshold from >5 to >0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent ec86d1a commit 56305b6
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
0 commit comments