Skip to content

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

test(computer-bali-live-e2e): use struct initialisation for config fields

Steven Enamakel0008475bc2f0
diff --git a/tests/computer_bali_live_e2e.rs b/tests/computer_bali_live_e2e.rs
index 3628f365de..7bcd2baa4e 100644
--- a/tests/computer_bali_live_e2e.rs
+++ b/tests/computer_bali_live_e2e.rs
@@ -48,9 +48,11 @@ const PLAN: &str = include_str!("fixtures/computer/bali/plan.json");
const DEFAULT_CHROME: &str = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
fn config(workspace: &std::path::Path) -> Config {
- let mut config = Config::default();
- config.config_path = workspace.join("config.toml");
- config.workspace_dir = workspace.join("workspace");
+ let mut config = Config {
+ config_path: workspace.join("config.toml"),
+ workspace_dir: workspace.join("workspace"),
+ ..Default::default()
+ };
config.secrets.encrypt = false;
config.modules.enabled = true;
config.browser.enabled = true;