fix 100ms delay
Some checks failed
ci/push/linux-x64-gcc/2 Pipeline is running
ci/push/linux-aarch64-gcc/1 Pipeline was successful
ci/pr/linux-aarch64-gcc/1 Pipeline was successful
ci/push/linux-aarch64-gcc/2 Pipeline was successful
ci/pr/linux-x64-gcc/1 Pipeline was successful
ci/pr/linux-aarch64-gcc/2 Pipeline was successful
ci/push/linux-x64-gcc/1 Pipeline was successful
ci/pr/linux-x64-gcc/2 Pipeline failed

This commit is contained in:
tqcq 2024-08-11 11:43:57 +08:00
parent e8104ca460
commit 5c3de3e1bc

View File

@ -85,7 +85,7 @@ TEST_F(CondVarTest, NotifyOne_Wait) {
TEST_F(CondVarTest, NotifyOne_WaitFor) { TEST_F(CondVarTest, NotifyOne_WaitFor) {
// Wait // Wait
// constexpr auto kWaitTimeoutMs = 100; // constexpr auto kWaitTimeoutMs = 100;
constexpr auto kWaitTimeout = std::chrono::milliseconds(50); constexpr auto kWaitTimeout = std::chrono::milliseconds(100);
auto WaitFor = [&] { auto WaitFor = [&] {
UniqueLock<Mutex> inner_locker(*m); UniqueLock<Mutex> inner_locker(*m);
SetStarted(); SetStarted();