fix
This commit is contained in:
parent
1e8ba13f66
commit
54b844dc3b
11
tests/fixtures/winfsp_fixture.hpp
vendored
11
tests/fixtures/winfsp_fixture.hpp
vendored
@ -26,7 +26,6 @@
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include "app_config.hpp"
|
||||
#include "comm/s3/s3_comm.hpp"
|
||||
#include "comm/curl/curl_comm.hpp"
|
||||
#include "drives/winfsp/winfsp_drive.hpp"
|
||||
#include "platform/platform.hpp"
|
||||
@ -43,9 +42,6 @@ public:
|
||||
std::unique_ptr<curl_comm> comm;
|
||||
std::unique_ptr<i_provider> provider;
|
||||
std::unique_ptr<winfsp_drive> drive;
|
||||
#ifdef REPERTORY_ENABLE_S3
|
||||
std::unique_ptr<s3_comm> s3_comm_;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
void SetUp() override {
|
||||
@ -82,8 +78,8 @@ protected:
|
||||
config->set_enable_drive_events(true);
|
||||
event_system::instance().start();
|
||||
|
||||
s3_comm_ = std::make_unique<s3_comm>(*config);
|
||||
provider = std::make_unique<s3_provider>(*config, *s3_comm_);
|
||||
comm_ = std::make_unique<curl_comm>(config->get_s3_config());
|
||||
provider = std::make_unique<s3_provider>(*config, *comm_);
|
||||
drive = std::make_unique<winfsp_drive>(*config, lock_data_, *provider);
|
||||
#endif
|
||||
return;
|
||||
@ -132,9 +128,6 @@ protected:
|
||||
if (PROVIDER_INDEX != 0) {
|
||||
drive.reset();
|
||||
provider.reset();
|
||||
#ifdef REPERTORY_ENABLE_S3
|
||||
s3_comm_.reset();
|
||||
#endif
|
||||
comm.reset();
|
||||
config.reset();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user