We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e67ef3e + 8bdf5fc commit 011cb90Copy full SHA for 011cb90
lldb/unittests/Host/MainLoopTest.cpp
@@ -421,9 +421,9 @@ TEST_F(MainLoopTest, ManyPendingCallbacks) {
421
422
TEST_F(MainLoopTest, CallbackWithTimeout) {
423
MainLoop loop;
424
+ auto start = std::chrono::steady_clock::now();
425
loop.AddCallback([](MainLoopBase &loop) { loop.RequestTermination(); },
426
std::chrono::seconds(2));
- auto start = std::chrono::steady_clock::now();
427
ASSERT_THAT_ERROR(loop.Run().takeError(), llvm::Succeeded());
428
EXPECT_GE(std::chrono::steady_clock::now() - start, std::chrono::seconds(2));
429
}
0 commit comments