summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-09-28 11:37:01 +0000
committerTor Egge <Tor.Egge@oath.com>2017-09-28 11:37:01 +0000
commita1aabb156663a63736cbb6d401c6cfb03a2b2776 (patch)
tree9ec0bb5dc4f3c610cc40248bbdd8f54717abcbb3 /searchlib
parent5910ecb2c9f75ceac2948c347a03c4de24b890f0 (diff)
Actual attribute vector is not needed when only checking feature executor setup.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/features/prod_features_attributematch.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/searchlib/src/tests/features/prod_features_attributematch.cpp b/searchlib/src/tests/features/prod_features_attributematch.cpp
index cab9c66a95b..4ddb3170efe 100644
--- a/searchlib/src/tests/features/prod_features_attributematch.cpp
+++ b/searchlib/src/tests/features/prod_features_attributematch.cpp
@@ -307,9 +307,6 @@ Test::testAttributeMatch()
{ // tensor attribute is not allowed
FtFeatureTest ft(_factory, "attributeMatch(tensor)");
ft.getIndexEnv().getBuilder().addField(FieldType::ATTRIBUTE, CollectionType::SINGLE, DataType::TENSOR, "tensor");
- AttributePtr tensorAttr = AttributeFactory::createAttribute("tensor", AVC (AVBT::TENSOR, AVCT::SINGLE));
- tensorAttr->addReservedDoc();
- ft.getIndexEnv().getAttributeMap().add(tensorAttr);
ASSERT_TRUE(ft.getQueryEnv().getBuilder().addAttributeNode("tensor") != nullptr);
ASSERT_TRUE(!ft.setup());
}