diff options
author | Geir Storli <geirst@yahooinc.com> | 2023-03-13 13:55:29 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2023-03-13 13:59:08 +0000 |
commit | 0c657642eff7d85c000464e9edba16ded4845e7d (patch) | |
tree | 3315f420e49dd85739089780388007ce1649672a /document/src/tests/documentupdatetestcase.cpp | |
parent | a40183094fd45dbf320dd57f8d56a5a6fac7f247 (diff) |
Reduce creation of Document instances without DocumentTypeRepo.
Diffstat (limited to 'document/src/tests/documentupdatetestcase.cpp')
-rw-r--r-- | document/src/tests/documentupdatetestcase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/document/src/tests/documentupdatetestcase.cpp b/document/src/tests/documentupdatetestcase.cpp index 7a5d88d1013..3fbccaa155f 100644 --- a/document/src/tests/documentupdatetestcase.cpp +++ b/document/src/tests/documentupdatetestcase.cpp @@ -141,7 +141,7 @@ TEST(DocumentUpdateTest, testSimpleUsage) auto docUpdateCopy(DocumentUpdate::createHEAD(repo, docBuf)); // Create a test document - Document doc(*docType, DocumentId("id:ns:test::1")); + Document doc(repo, *docType, DocumentId("id:ns:test::1")); doc.setValue("bytef", ByteFieldValue::make(0)); doc.setValue("intf", IntFieldValue::make(5)); ArrayFieldValue array(*arrayType); @@ -417,7 +417,7 @@ WeightedSetAutoCreateFixture::~WeightedSetAutoCreateFixture() = default; WeightedSetAutoCreateFixture::WeightedSetAutoCreateFixture() : repo(makeConfig()), docType(repo.getDocumentType("test")), - doc(*docType, DocumentId("id:ns:test::1")), + doc(repo, *docType, DocumentId("id:ns:test::1")), field(docType->getField("strwset")), update(repo, *docType, DocumentId("id:ns:test::1")) { @@ -1355,7 +1355,7 @@ struct UpdateToEmptyDocumentFixture { Document::UP make_empty_doc() { vespalib::nbostream stream; { - Document doc(doc_type, DocumentId("id:test:test::0")); + Document doc(*repo, doc_type, DocumentId("id:test:test::0")); VespaDocumentSerializer serializer(stream); serializer.write(doc); } |