From 59431007542cfd7851c49cda9fd0bba504ce8322 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 20 Dec 2022 11:21:29 +0100 Subject: [PATCH] Fix existing tests --- milli/src/update/index_documents/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/milli/src/update/index_documents/mod.rs b/milli/src/update/index_documents/mod.rs index 7b8408fe4..3656a3bc4 100644 --- a/milli/src/update/index_documents/mod.rs +++ b/milli/src/update/index_documents/mod.rs @@ -1658,6 +1658,12 @@ mod tests { "branch_id_number": 0 }]}; + { + let mut wtxn = index.write_txn().unwrap(); + index.put_primary_key(&mut wtxn, "id").unwrap(); + wtxn.commit().unwrap(); + } + index.add_documents(doc1).unwrap(); index.add_documents(doc2).unwrap();