Skip to content

Commit 9d7bf1d

Browse files
senamakelmedullabot
andcommitted
test(memory): construct Config through its public API
Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent b472384 commit 9d7bf1d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/agent_retrieval_e2e.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ fn test_config() -> (TempDir, Config) {
4040
let tmp = TempDir::new().unwrap();
4141
let workspace_dir = tmp.path().join("workspace");
4242
std::fs::create_dir_all(&workspace_dir).expect("create workspace dir");
43-
let mut cfg = Config {
44-
workspace_dir: workspace_dir.clone(),
45-
..Config::default()
46-
};
43+
// Assign after construction: Config carries private runtime-only state, so
44+
// external integration tests cannot use struct-update syntax.
45+
let mut cfg = Config::default();
46+
cfg.workspace_dir = workspace_dir;
4747
// Inert embedder — keeps the test deterministic and avoids any real
4848
// Ollama call. Mirrors `retrieval/integration_test.rs`.
4949
cfg.memory_tree.embedding_endpoint = None;

0 commit comments

Comments
 (0)