Skip to content

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

test(tests): update wiremock path matching in managed default model test

Steven Enamakel3fa4ce92c217
diff --git a/crates/openhuman-embed/tests/managed_default_model.rs b/crates/openhuman-embed/tests/managed_default_model.rs
index b91778b209..1df54b6ba5 100644
--- a/crates/openhuman-embed/tests/managed_default_model.rs
+++ b/crates/openhuman-embed/tests/managed_default_model.rs
@@ -6,7 +6,7 @@ mod common;
use common::{chat_completion, chat_requests, offline_config, runtime, stub_backend, PointedInference};
use openhuman_embed::{Access, AgentSpec, Runtime, Workspace};
use serde_json::Value;
-use wiremock::matchers::{method, path};
+use wiremock::matchers::{method, path_regex};
use wiremock::{Mock, MockServer, ResponseTemplate};
#[test]
@@ -16,7 +16,7 @@ fn registered_provider_default_runs_with_an_unpinned_config() {
let backend = stub_backend().await;
let inference = MockServer::start().await;
Mock::given(method("POST"))
- .and(path("/v1/chat/completions"))
+ .and(path_regex(r"chat/completions$"))
.respond_with(
ResponseTemplate::new(200).set_body_json(chat_completion("fixture reply")),
)