diff options
author | Geir Storli <geirst@yahooinc.com> | 2023-03-13 16:56:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 16:56:36 +0100 |
commit | e516c905090b34d10e6f13b72a8b836ab33f6331 (patch) | |
tree | 21f5a109fdc03a07ef1dd0cbe99fe8fb9b845ec4 /searchlib/src/tests | |
parent | 087f462b06d3f6bf4073ac34fa383310e5a15d21 (diff) | |
parent | 0c657642eff7d85c000464e9edba16ded4845e7d (diff) |
Merge pull request #26423 from vespa-engine/geirst/less-document-without-type-repo
Reduce creation of Document instances without DocumentTypeRepo.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r-- | searchlib/src/tests/docstore/document_store_visitor/document_store_visitor_test.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/docstore/document_store_visitor/document_store_visitor_test.cpp b/searchlib/src/tests/docstore/document_store_visitor/document_store_visitor_test.cpp index efe858c016a..e841e334215 100644 --- a/searchlib/src/tests/docstore/document_store_visitor/document_store_visitor_test.cpp +++ b/searchlib/src/tests/docstore/document_store_visitor/document_store_visitor_test.cpp @@ -60,7 +60,7 @@ makeDoc(const DocumentTypeRepo &repo, uint32_t i, bool before) idstr << "id:test:test:: " << i; DocumentId id(idstr.str()); const DocumentType *docType = repo.getDocumentType(doc_type_name); - Document::UP doc(new Document(*docType, id)); + Document::UP doc(new Document(repo, *docType, id)); ASSERT_TRUE(doc.get()); asciistream mainstr; mainstr << "static text" << i << " body something"; diff --git a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp index 414e06bd464..580fd199806 100644 --- a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp +++ b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp @@ -426,7 +426,7 @@ makeDoc(const DocumentTypeRepo &repo, uint32_t i, bool extra_field, size_t numRe idstr << "id:test:test:: " << i; DocumentId id(idstr.str()); const DocumentType *docType = repo.getDocumentType(doc_type_name); - Document::UP doc(new Document(*docType, id)); + Document::UP doc(new Document(repo, *docType, id)); ASSERT_TRUE(doc.get()); asciistream mainstr; mainstr << "static text" << i << " body something"; |