diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-06 23:04:43 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-16 23:48:45 +0000 |
commit | a200bf7708ad94661d1fc8da8776b3884ff78ef5 (patch) | |
tree | d9af222fa3376f1e8e77ab50b0c2bd8254560b88 /searchcore/src/tests/proton/reference | |
parent | 2f8e6f0cb74ef77a645e7543975aca736f7649a9 (diff) |
fastos::TimeStamp -> vespalib::duration
Diffstat (limited to 'searchcore/src/tests/proton/reference')
-rw-r--r-- | searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp b/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp index 062586b1d0f..b77d9b3f5ab 100644 --- a/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp +++ b/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp @@ -230,18 +230,18 @@ struct Fixture { oldAttrMgr.addReferenceAttribute("parent2_ref"); oldAttrMgr.addReferenceAttribute("parent3_ref"); } - ImportedAttributesRepo::UP resolve(fastos::TimeStamp visibilityDelay, bool useReferences) { + ImportedAttributesRepo::UP resolve(vespalib::duration visibilityDelay, bool useReferences) { DocumentDBReferenceResolver resolver(registry, docModel.childDocType, importedFieldsCfg, docModel.childDocType, _gidToLidChangeListenerRefCount, _attributeFieldWriter, useReferences); return resolver.resolve(attrMgr, oldAttrMgr, std::shared_ptr<search::IDocumentMetaStoreContext>(), visibilityDelay); } - ImportedAttributesRepo::UP resolve(fastos::TimeStamp visibilityDelay) { + ImportedAttributesRepo::UP resolve(vespalib::duration visibilityDelay) { return resolve(visibilityDelay, true); } ImportedAttributesRepo::UP resolveReplay() { - return resolve(fastos::TimeStamp(0), false); + return resolve(vespalib::duration::zero(), false); } ImportedAttributesRepo::UP resolve() { - return resolve(fastos::TimeStamp(0)); + return resolve(vespalib::duration::zero()); } void teardown() { DocumentDBReferenceResolver resolver(registry, docModel.childDocType, importedFieldsCfg, docModel.childDocType, _gidToLidChangeListenerRefCount, _attributeFieldWriter, false); @@ -306,7 +306,7 @@ TEST_F("require that imported attributes are instantiated without search cache a TEST_F("require that imported attributes are instantiated with search cache if visibility delay > 0", Fixture) { - auto repo = f.resolve(fastos::TimeStamp::Seconds(1.0)); + auto repo = f.resolve(1s); EXPECT_EQUAL(2u, repo->size()); f.assertImportedAttribute("imported_a", "ref", "target_a", true, repo->get("imported_a")); f.assertImportedAttribute("imported_b", "other_ref", "target_b", true, repo->get("imported_b")); |