Skip to content

Commit 168967e

Browse files
committed
review
1 parent ca86728 commit 168967e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/cpp/common/alarm_test.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ TEST(AlarmTest, CallbackSetInCallback) {
459459
});
460460
}
461461
std::unique_lock<std::mutex> l(c->mu);
462-
EXPECT_TRUE(c->cv.wait_until(
463-
l, std::chrono::system_clock::now() + std::chrono::seconds(20),
464-
[c] { return c->completed; }));
462+
c->cv.wait(l, [c] { return c->completed; });
465463
}
466464

467465
} // namespace

0 commit comments

Comments
 (0)