Skip to content

Commit 2ea101a

Browse files
committed
Refactor introspect command test to use execute_command_with_timeout for improved reliability
1 parent 6da5f42 commit 2ea101a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2etests/tests/core_session/test_command_introspect.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ fn test_introspect_command() -> Result<(), Box<dyn std::error::Error>> {
1010

1111
let session = q_chat_helper::get_chat_session();
1212
let mut chat = session.lock().unwrap_or_else(|poisoned| poisoned.into_inner());
13+
1314
println!("✅ Kiro-cli Chat session started");
1415

15-
let response = q_chat_helper::execute_q_subcommand("introspect")?;
16+
let response = chat.execute_command_with_timeout("introspect", Some(3000))?;
17+
1618
println!("📝 Response: {} bytes", response);
1719
println!("📝 FULL OUTPUT:");
1820
println!("{}", response);

0 commit comments

Comments
 (0)