Skip to content

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

test(memory): match Ollama error contract

Steven Enamakelc69aad9d6a70
diff --git a/tests/raw_coverage/memory_tree_embed_round25_raw_coverage_e2e.rs b/tests/raw_coverage/memory_tree_embed_round25_raw_coverage_e2e.rs
index 829875302c..433790aca3 100644
--- a/tests/raw_coverage/memory_tree_embed_round25_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/memory_tree_embed_round25_raw_coverage_e2e.rs
@@ -65,8 +65,11 @@ async fn round25_ollama_embedder_covers_success_and_error_edges_without_real_oll
.await
.expect_err("missing model should fail")
.to_string();
- assert!(missing_err.contains("embedding model `missing-round25` is not installed"));
- assert!(missing_err.contains("ollama pull missing-round25"));
+ assert!(
+ missing_err.contains("ollama embed failed with status 404 Not Found"),
+ "{missing_err}"
+ );
+ assert!(missing_err.contains("model not found"));
let dim_url = start_embed_server(Router::new().route(
"/api/embed",