Skip to content

Commit

Permalink
MB-39696: Use dedicated data-path in DcpConnMapTest
Browse files Browse the repository at this point in the history
Change-Id: I23c363ffd3810a3d6d4183a18d65a3b0ebecdf1c
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/152991
Tested-by: Paolo Cocchi <paolo.cocchi@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
paolococchi committed May 10, 2021
1 parent 580cdb2 commit cf49491
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engines/ep/tests/module_tests/dcp_test.cc
Expand Up @@ -47,6 +47,7 @@
#include <memcached/server_cookie_iface.h>
#include <platform/cbassert.h>
#include <platform/compress.h>
#include <platform/dirutils.h>
#include <programs/engine_testapp/mock_cookie.h>
#include <programs/engine_testapp/mock_server.h>
#include <statistics/cbstat_collector.h>
Expand Down Expand Up @@ -1691,7 +1692,11 @@ TEST_P(ConnectionTest, ConsumerWithConsumerNameEnablesSyncRepl) {
class DcpConnMapTest : public ::testing::Test {
protected:
void SetUp() override {
engine = SynchronousEPEngine::build({});
const auto dbname = dbnameFromCurrentGTestInfo();
removePathIfExists(dbname);

const auto extraConfig = "dbname=" + dbname;
engine = SynchronousEPEngine::build(extraConfig);

initialize_time_functions(get_mock_server_api()->core);

Expand All @@ -1703,6 +1708,7 @@ class DcpConnMapTest : public ::testing::Test {
engine.reset();
ObjectRegistry::onSwitchThread(nullptr);
ExecutorPool::shutdown();
removePathIfExists(dbnameFromCurrentGTestInfo());
}

/**
Expand Down

0 comments on commit cf49491

Please sign in to comment.