aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-04-20 12:40:58 +0000
committerTor Egge <Tor.Egge@oath.com>2018-04-20 12:40:58 +0000
commit8771271e8a8cfd3387fb388505f6006ad99dc18b (patch)
tree1232a76882cb51c417be33e1ca5cd5b0faf5903e /searchcore/src/tests/proton/documentdb/documentdb_test.cpp
parent0b71f5899ec4c0f2e74551daff901db36e7f4182 (diff)
Enable import of imported attribute vector in backend.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdb_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdb_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
index 51ecc6ab0a1..8affe6e9cbf 100644
--- a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
@@ -21,6 +21,7 @@
#include <vespa/searchcore/proton/server/documentdbconfigmanager.h>
#include <vespa/searchcore/proton/server/memoryconfigstore.h>
#include <vespa/searchcorespi/index/indexflushtarget.h>
+#include <vespa/searchlib/attribute/attribute_read_guard.h>
#include <vespa/searchlib/index/dummyfileheadercontext.h>
#include <vespa/searchlib/transactionlog/translogserver.h>
#include <vespa/vespalib/data/slime/slime.h>
@@ -240,7 +241,8 @@ TEST_F("require that document db registers reference", Fixture)
EXPECT_TRUE(reference);
auto attr = reference->getAttribute("attr1");
EXPECT_TRUE(attr);
- EXPECT_EQUAL(search::attribute::BasicType::INT32, attr->getBasicType());
+ auto attrReadGuard = attr->makeReadGuard(false);
+ EXPECT_EQUAL(search::attribute::BasicType::INT32, attrReadGuard->attribute()->getBasicType());
}
} // namespace