Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yiguolei committed Dec 27, 2024
1 parent cc2c636 commit fd15fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion be/test/olap/wal/wal_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class WalManagerTest : public testing::Test {
void SetUp() override {
prepare();
_env = ExecEnv::GetInstance();
_env->_cluster_info = new ClusterInfo();
_env->_cluster_info = std::move(std::make_unique<ClusterInfo>());
_env->_cluster_info->master_fe_addr.hostname = "host name";
_env->_cluster_info->master_fe_addr.port = 1234;
_env->_cluster_info->backend_id = 1001;
Expand Down
4 changes: 1 addition & 3 deletions be/test/vec/exec/vfile_scanner_exception_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class VfileScannerExceptionTest : public testing::Test {
TFileRangeDesc _range_desc;
TFileScanRange _scan_range;
std::unique_ptr<ShardedKVCache> _kv_cache = nullptr;
std::unique_ptr<ClusterInfo> _cluster_info = nullptr;
};

void VfileScannerExceptionTest::_init_desc_table() {
Expand Down Expand Up @@ -267,9 +266,8 @@ void VfileScannerExceptionTest::init() {
_scan_range.params.format_type = TFileFormatType::FORMAT_JNI;
_kv_cache.reset(new ShardedKVCache(48));

_cluster_info.reset(new ClusterInfo());
_env = ExecEnv::GetInstance();
_env->_cluster_info = _cluster_info.get();
_env->_cluster_info = std::move(std::make_unique<ClusterInfo>());
_env->_cluster_info->master_fe_addr.hostname = "host name";
_env->_cluster_info->master_fe_addr.port = _backend_id;
_env->_cluster_info->backend_id = 1001;
Expand Down

0 comments on commit fd15fc9

Please sign in to comment.