summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-05-12 10:15:33 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-05-12 10:15:33 +0000
commit703129f0917a91c0ae27a5aefce0059477753160 (patch)
tree87d2a73c5e42f6a42ab6dc3342eb06649b56cc87 /searchcore/src/tests/proton/attribute
parent8ae56fe52587f1fc72bac2e6c33658802d57fb59 (diff)
Update attribute filter manager to pass on shrink flush targets.
Diffstat (limited to 'searchcore/src/tests/proton/attribute')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index 173d8dd2a2a..21761d412a2 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -13,6 +13,7 @@ LOG_SETUP("attribute_test");
#include <vespa/searchcore/proton/attribute/attributemanager.h>
#include <vespa/searchcore/proton/attribute/filter_attribute_manager.h>
#include <vespa/searchcore/proton/test/attribute_utils.h>
+#include <vespa/searchcorespi/flush/iflushtarget.h>
#include <vespa/searchlib/attribute/attributefactory.h>
#include <vespa/searchlib/attribute/integerbase.h>
#include <vespa/searchlib/common/idestructorcallback.h>
@@ -550,6 +551,10 @@ TEST_F("require that filter attribute manager can filter attributes", FilterFixt
f._filterMgr.getAttributeList(attrs);
EXPECT_EQUAL(1u, attrs.size());
EXPECT_EQUAL("a2", attrs[0]->getName());
+ searchcorespi::IFlushTarget::List targets = f._filterMgr.getFlushTargets();
+ EXPECT_EQUAL(2u, targets.size());
+ EXPECT_EQUAL("attribute.a2", targets[0]->getName());
+ EXPECT_EQUAL("attributeshrink.a2", targets[1]->getName());
}
TEST_F("require that filter attribute manager can return flushed serial number", FilterFixture)