Skip to content

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

test(embed): use struct update syntax in builder test

Steven Enamakel19448687247a
diff --git a/crates/openhuman-embed/src/runtime/builder_tests.rs b/crates/openhuman-embed/src/runtime/builder_tests.rs
index e2a613ac05..2bcb44d91c 100644
--- a/crates/openhuman-embed/src/runtime/builder_tests.rs
+++ b/crates/openhuman-embed/src/runtime/builder_tests.rs
@@ -44,8 +44,10 @@ fn a_discovered_build_judges_the_route_by_the_provider_model() {
None
));
// Resolved: the assembled config's model decides.
- let mut config = openhuman_core::config::Config::default();
- config.default_model = Some("gpt-test".into());
+ let mut config = openhuman_core::config::Config {
+ default_model: Some("gpt-test".into()),
+ ..Default::default()
+ };
assert!(routed_provider_effective(&routed, Some(&config)));
config.default_model = Some(" ".into());
assert!(!routed_provider_effective(&routed, Some(&config)));