Skip to content

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

test: use struct update syntax for config in regression test

Steven Enamakel67ef62b17c70
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index e43357fce4..469cf65b17 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -350,9 +350,11 @@ async fn drive_subagent() {
let tool_output = Arc::new(Mutex::new(None));
let workspace =
std::path::PathBuf::from(std::env::var("OPENHUMAN_WORKSPACE").expect("test workspace set"));
- let mut tool_config = openhuman_core::config::Config::default();
- tool_config.config_path = workspace.join("config.toml");
- tool_config.workspace_dir = workspace;
+ let tool_config = openhuman_core::config::Config {
+ config_path: workspace.join("config.toml"),
+ workspace_dir: workspace,
+ ..Default::default()
+ };
let composio_tool = CountedComposioTool {
inner: ComposioListToolsTool::new(Arc::new(tool_config)),
executions: executions.clone(),