Skip to content

Commit 48f948c

Browse files
committed
test: fix CI assertions and install ripgrep for search tests
Update Chinese/auto-mode expectations left stale by recent product changes, and make Ubuntu CI provide `rg` for outside-workspace search coverage.
1 parent 07895e0 commit 48f948c

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: Cache cargo
2626
uses: Swatinem/rust-cache@v2
2727

28+
- name: Install ripgrep
29+
run: sudo apt-get update && sudo apt-get install -y ripgrep
30+
2831
- name: Format
2932
run: cargo fmt --check
3033

src/agent/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,7 @@ async fn subagent_tool_execution_normalizes_bounded_input_before_delegation() {
28852885
assert!(prompt.contains("允许路径:src/agent.rs"));
28862886
assert!(prompt.contains("负责路径:src/tool.rs"));
28872887
assert!(prompt.contains("执行边界:timeout_secs=30,max_tool_calls=5"));
2888-
assert!(prompt.contains("do not recursively delegate"));
2888+
assert!(prompt.contains("不要递归委派"));
28892889
}
28902890

28912891
#[tokio::test]

src/tui/runtime/tests.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4746,9 +4746,10 @@ fn slash_permission_without_args_opens_dialog() {
47464746
let dialog = runtime.state().dialog().expect("dialog should be open");
47474747
assert_eq!(dialog.title, "Permission mode");
47484748
assert_eq!(dialog.selected, 1);
4749-
assert_eq!(dialog.items.len(), 3);
4749+
assert_eq!(dialog.items.len(), 4);
47504750
assert_eq!(dialog.items[0].label, "Safe");
4751-
assert_eq!(dialog.items[2].label, "YOLO");
4751+
assert_eq!(dialog.items[2].label, "Auto");
4752+
assert_eq!(dialog.items[3].label, "YOLO");
47524753
}
47534754

47544755
#[test]

0 commit comments

Comments
 (0)