Skip to content

Commit e6a4fc8

Browse files
committed
format
1 parent d307084 commit e6a4fc8

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

be/test/agent/task_worker_pool_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,21 @@ TEST(TaskWorkerPoolTest, ReportTabletCallbackWithDebugPoint) {
141141
ClusterInfo cluster_info;
142142
cluster_info.master_fe_addr.__set_port(9030);
143143

144-
Defer defer {[] {
145-
ExecEnv::GetInstance()->set_storage_engine(nullptr);
146-
}};
144+
Defer defer {[] { ExecEnv::GetInstance()->set_storage_engine(nullptr); }};
147145

148146
{
149147
// debug point is enabled
150148
DebugPoints::instance()->add("WorkPoolReportTablet.report_tablet_callback.skip");
151-
EXPECT_TRUE(DebugPoints::instance()->is_enable("WorkPoolReportTablet.report_tablet_callback.skip"));
149+
EXPECT_TRUE(DebugPoints::instance()->is_enable(
150+
"WorkPoolReportTablet.report_tablet_callback.skip"));
152151
report_tablet_callback(ExecEnv::GetInstance()->storage_engine().to_local(), &cluster_info);
153152
}
154153

155154
{
156155
// debug point is removed
157156
DebugPoints::instance()->remove("WorkPoolReportTablet.report_tablet_callback.skip");
158-
EXPECT_FALSE(DebugPoints::instance()->is_enable("WorkPoolReportTablet.report_tablet_callback.skip"));
157+
EXPECT_FALSE(DebugPoints::instance()->is_enable(
158+
"WorkPoolReportTablet.report_tablet_callback.skip"));
159159
report_tablet_callback(ExecEnv::GetInstance()->storage_engine().to_local(), &cluster_info);
160160
}
161161

be/test/cloud/cloud_task_worker_pool_test.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
#include "agent/task_worker_pool.h"
19-
2018
#include <gtest/gtest.h>
2119

22-
#include "olap/options.h"
20+
#include "agent/task_worker_pool.h"
2321
#include "cloud/cloud_storage_engine.h"
22+
#include "olap/options.h"
2423
#include "runtime/cluster_info.h"
2524

2625
namespace doris {
@@ -30,25 +29,27 @@ TEST(CloudTaskWorkerPoolTest, ReportTabletCallbackWithDebugPoint) {
3029
config::enable_debug_points = true;
3130

3231
ExecEnv::GetInstance()->set_storage_engine(std::make_unique<CloudStorageEngine>(EngineOptions {}));
32+
ExecEnv::GetInstance()->set_storage_engine(
33+
std::make_unique<CloudStorageEngine>(EngineOptions {}));
3334

3435
ClusterInfo cluster_info;
3536
cluster_info.master_fe_addr.__set_port(9030);
3637

37-
Defer defer {[] {
38-
ExecEnv::GetInstance()->set_storage_engine(nullptr);
39-
}};
38+
Defer defer {[] { ExecEnv::GetInstance()->set_storage_engine(nullptr); }};
4039

4140
{
4241
// debug point is enabled
4342
DebugPoints::instance()->add("WorkPoolCloudReportTablet.report_tablet_callback.skip");
44-
EXPECT_TRUE(DebugPoints::instance()->is_enable("WorkPoolCloudReportTablet.report_tablet_callback.skip"));
43+
EXPECT_TRUE(DebugPoints::instance()->is_enable(
44+
"WorkPoolCloudReportTablet.report_tablet_callback.skip"));
4545
report_tablet_callback(ExecEnv::GetInstance()->storage_engine().to_cloud(), &cluster_info);
4646
}
4747

4848
{
4949
// debug point is removed
5050
DebugPoints::instance()->remove("WorkPoolCloudReportTablet.report_tablet_callback.skip");
51-
EXPECT_FALSE(DebugPoints::instance()->is_enable("WorkPoolCloudReportTablet.report_tablet_callback.skip"));
51+
EXPECT_FALSE(DebugPoints::instance()->is_enable(
52+
"WorkPoolCloudReportTablet.report_tablet_callback.skip"));
5253
report_tablet_callback(ExecEnv::GetInstance()->storage_engine().to_cloud(), &cluster_info);
5354
}
5455

0 commit comments

Comments
 (0)