diff --git a/extensions/couchbase/tests/GetCouchbaseKeyTests.cpp b/extensions/couchbase/tests/GetCouchbaseKeyTests.cpp index d518ace039..0d2e5b9109 100644 --- a/extensions/couchbase/tests/GetCouchbaseKeyTests.cpp +++ b/extensions/couchbase/tests/GetCouchbaseKeyTests.cpp @@ -37,7 +37,9 @@ struct ExpectedCallOptions { class GetCouchbaseKeyTestController : public TestController { public: - GetCouchbaseKeyTestController() { + GetCouchbaseKeyTestController() + : controller_(std::make_unique("GetCouchbaseKey")), + proc_(controller_.getProcessor()) { LogTestController::getInstance().setDebug(); LogTestController::getInstance().setDebug(); LogTestController::getInstance().setTrace(); @@ -97,8 +99,8 @@ class GetCouchbaseKeyTestController : public TestController { } protected: - std::shared_ptr proc_ = std::make_shared("GetCouchbaseKey"); - minifi::test::SingleProcessorTestController controller_{proc_}; + minifi::test::SingleProcessorTestController controller_; + core::Processor* proc_ = nullptr; std::shared_ptr mock_couchbase_cluster_service_; };