Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgamez committed Oct 16, 2024
1 parent 862fece commit c71a5d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/aws/tests/S3TestsFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class FlowProcessorS3TestsFixture : public S3TestsFixture<T> {
LogTestController::getInstance().setTrace<minifi::processors::GetFile>();
LogTestController::getInstance().setDebug<minifi::processors::UpdateAttribute>();

this->mock_s3_request_sender_ptr = new MockS3RequestSender();
std::unique_ptr<minifi::aws::s3::S3RequestSender> mock_s3_request_sender(this->mock_s3_request_sender_ptr);
auto mock_s3_request_sender = std::make_unique<MockS3RequestSender>();
this->mock_s3_request_sender_ptr = mock_s3_request_sender.get();
auto s3_processor_unique_ptr = std::unique_ptr<T>(new T("S3Processor", utils::Identifier(), std::move(mock_s3_request_sender)));
this->s3_processor = s3_processor_unique_ptr.get();

Expand Down Expand Up @@ -195,8 +195,8 @@ template<typename T>
class FlowProducerS3TestsFixture : public S3TestsFixture<T> {
public:
FlowProducerS3TestsFixture() {
this->mock_s3_request_sender_ptr = new MockS3RequestSender();
std::unique_ptr<minifi::aws::s3::S3RequestSender> mock_s3_request_sender(this->mock_s3_request_sender_ptr);
auto mock_s3_request_sender = std::make_unique<MockS3RequestSender>();
this->mock_s3_request_sender_ptr = mock_s3_request_sender.get();
auto s3_processor_unique_ptr = std::unique_ptr<T>(new T("S3Processor", utils::Identifier(), std::move(mock_s3_request_sender)));
this->s3_processor = s3_processor_unique_ptr.get();

Expand Down

0 comments on commit c71a5d0

Please sign in to comment.