fix(tests): stabilize issue #868 model refresh regression

This commit is contained in:
Chummy 2026-02-19 18:59:44 +08:00
parent 2124b1dbbd
commit 772bb15ed9
2 changed files with 3 additions and 2 deletions

View file

@ -5428,7 +5428,8 @@ mod tests {
let config = Config {
workspace_dir: tmp.path().to_path_buf(),
default_provider: Some("venice".to_string()),
// Use a non-provider channel key to keep this test deterministic and offline.
default_provider: Some("imessage".to_string()),
..Config::default()
};

View file

@ -2166,7 +2166,7 @@ mod tests {
}
#[test]
fn strip_think_tags_removes_multiple_blocks() {
fn strip_think_tags_removes_multiple_blocks_with_surrounding_text() {
let input = "Answer A <think>hidden 1</think> and B <think>hidden 2</think> done";
let output = strip_think_tags(input);
assert_eq!(output, "Answer A and B done");