From 1270e167fe3b2898f1ef46add3bdd2540c79e089 Mon Sep 17 00:00:00 2001 From: profit Date: Wed, 22 Apr 2026 04:11:13 -0500 Subject: [PATCH] Post-merge: update test pattern matches for struct-like UpsertOutcome MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After merging main (with the UpsertOutcome struct-like enum shape from PR #2), the 4 new upsert tests needed pattern-match updates: UpsertOutcome::Added(_) → UpsertOutcome::Added { .. } 9/9 upsert tests pass. --- crates/vectord/src/playbook_memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vectord/src/playbook_memory.rs b/crates/vectord/src/playbook_memory.rs index 36a4c54..b74b304 100644 --- a/crates/vectord/src/playbook_memory.rs +++ b/crates/vectord/src/playbook_memory.rs @@ -1737,7 +1737,7 @@ mod upsert_tests { // First seed: Alice + Docker doc ref let e1 = mk_with_docs(op, day, &["Alice"], vec![docref("docker", "24.0.7")]); let o1 = pm.upsert_entry(e1).await.unwrap(); - assert!(matches!(o1, UpsertOutcome::Added(_))); + assert!(matches!(o1, UpsertOutcome::Added { .. })); // Second seed on same (op, day) but new names AND new tool ref let e2 = mk_with_docs(op, day, &["Bob"], vec![docref("terraform", "1.5.0")]);