Skip to content

Commit eefb49f

Browse files
author
lijiachen19
committed
F
1 parent 080bb53 commit eefb49f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ucm/shared/infra/thread/thread_pool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,6 @@ class ThreadPool {
228228
std::condition_variable cv_;
229229
};
230230

231-
} // namespace UC
231+
} // namespace UC
232232

233233
#endif

ucm/shared/test/case/infra/thread_pool_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
* SOFTWARE.
2323
* */
2424

25+
#include "thread/thread_pool.h"
2526
#include <chrono>
2627
#include <fcntl.h>
2728
#include <gtest/gtest.h>
2829
#include <unistd.h>
2930
#include "thread/latch.h"
30-
#include "thread/thread_pool.h"
3131

3232
class UCThreadPoolTest : public ::testing::Test {};
3333

@@ -84,13 +84,13 @@ TEST_F(UCThreadPoolTest, SimulatedFileSystemHang)
8484
std::unique_lock<std::mutex> fakelock(fakeMutex);
8585
std::condition_variable fakeCond;
8686
while (*(task.simulatingHang)) {
87-
fakeCond.wait_for(fakelock, std::chrono::milliseconds(10)); // waiting forever
87+
fakeCond.wait_for(fakelock, std::chrono::milliseconds(10)); // waiting forever
8888
}
8989
})
9090
.SetWorkerTimeoutFn(
9191
[&](TestTask& task, const auto) {
9292
hangDetected++;
93-
*(task.simulatingHang) = false; // stop simulating hang
93+
*(task.simulatingHang) = false; // stop simulating hang
9494
},
9595
hangTimeoutMs, 10)
9696
.Run();

0 commit comments

Comments
 (0)