Files
ragflow/internal/handler
Jack 08666560b5 Test(handler): fix failing TestSearchHandlerUpdateRejectsInvalidSearchID assertion (#17622)
### Summary

`TestSearchHandlerUpdateRejectsInvalidSearchID` fails on `main`:

```
--- FAIL: TestSearchHandlerUpdateRejectsInvalidSearchID (0.00s)
    search_handler_test.go:98: expected 'no authorization' in message, got No authorization.
```

`UpdateSearch` answers an unauthorized `search_id` with `"No
authorization."` (`internal/handler/search.go:337`), which mirrors the
Python API's message verbatim, but the assertion searched for the
lowercase `"no authorization"`.

The fix lowercases the response before the substring check rather than
changing the handler's message: the capitalized text is the contract the
Python API exposes, so the test — not the handler — was wrong.

`bash build.sh --test -run TestSearchHandler ./internal/handler/`
passes.
2026-07-31 15:44:49 +08:00
..
2026-07-24 16:47:12 +08:00
2026-07-24 16:47:12 +08:00
2026-07-24 16:47:12 +08:00
2026-07-27 15:06:48 +08:00
2026-07-28 19:05:59 +08:00
2026-07-24 16:47:12 +08:00
2026-07-06 18:14:05 +08:00
2026-07-28 19:05:59 +08:00
2026-07-24 20:19:41 +08:00
2026-07-27 10:20:16 +08:00
2026-07-24 20:19:41 +08:00
2026-07-27 11:09:17 +08:00
2026-07-27 11:09:17 +08:00
2026-07-27 10:20:16 +08:00
2026-07-27 11:23:06 +08:00
2026-07-28 09:47:22 +08:00
2026-07-27 19:30:41 +08:00
2026-07-06 18:14:05 +08:00
2026-07-27 21:19:39 +08:00
2026-07-24 16:47:12 +08:00
2026-07-23 12:15:58 +08:00
2026-06-12 20:49:34 +08:00
2026-07-13 15:24:17 +08:00
2026-07-29 18:00:59 +08:00
2026-07-13 15:24:17 +08:00
2026-07-13 15:24:17 +08:00
2026-07-28 19:05:59 +08:00