Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(bus): keep temp workspace alive for duration of test

Steven Enamakeled0741c47cb6
diff --git a/crates/openhuman-core/src/channels/bus/subscriber_tests.rs b/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
index 0e2b70cb67..ca6102f981 100644
--- a/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
+++ b/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
@@ -30,12 +30,13 @@ impl ProgressiveReplySink for RecordingReply {
#[tokio::test(start_paused = true)]
async fn backend_channel_wait_does_not_cut_off_a_live_turn_after_180_seconds() {
let _serial = crate::web_chat::RUN_CHAT_TASK_TEST_LOCK.lock().await;
+ let workspace = tempfile::tempdir().expect("temporary workspace");
let block = crate::web_chat::TestRunChatTaskBlock {
started: Default::default(),
dropped: Default::default(),
release: Default::default(),
max_park_for: Duration::from_secs(300),
- succeed_in: Some(tempfile::tempdir().expect("temporary workspace").keep()),
+ succeed_in: Some(workspace.path().to_path_buf()),
};
crate::web_chat::set_test_run_chat_task_block(Some(block.clone())).await;