diff options
Diffstat (limited to 'searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp index e905354a69f..998537b2745 100644 --- a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp +++ b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp @@ -84,7 +84,10 @@ struct Fixture { return *this; } AttributeVector::SP getTargetAttribute(const vespalib::string &importedName) const { - return repo.get(importedName)->getTargetAttribute(); + auto readable_target_attr = repo.get(importedName)->getTargetAttribute(); + auto target_attr = std::dynamic_pointer_cast<AttributeVector>(readable_target_attr); + ASSERT_TRUE(target_attr); + return target_attr; } void clearContext() { ctx.reset(); |