aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-13 13:42:08 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-10-13 13:42:08 +0000
commit3bee3fe25fb3f18ab80005b1e8c757bd42738883 (patch)
treea251fa77974e3233035cb88372d2c16930fa0d9b /searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp
parentd91f0dbeda2a6ab71befb9b425078b2f1ac7432a (diff)
Shortcut bucket creation if it already exist.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp b/searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp
index 4b68481c386..487c8741a65 100644
--- a/searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/buckethandler/buckethandler_test.cpp
@@ -156,6 +156,11 @@ TEST_F("require that handleListBuckets() returns buckets from all sub dbs", Fixt
EXPECT_EQUAL(f._notReady.bucket(4), f._bucketList.getList()[2]);
}
+TEST_F("test hasBucket", Fixture) {
+ EXPECT_FALSE(f._handler.hasBucket(makeSpiBucket(BUCKET_1)));
+ EXPECT_TRUE(f._handler.hasBucket(makeSpiBucket(f._ready.bucket(2))));
+}
+
TEST_F("require that bucket is reported in handleGetBucketInfo()", Fixture)
{