File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -582,18 +582,14 @@ BOOST_AUTO_TEST_CASE(util_time_GetTime)
582
582
BOOST_CHECK_EQUAL (111000 , TicksSinceEpoch<std::chrono::milliseconds>(NodeClock::now ()));
583
583
BOOST_CHECK_EQUAL (111000000 , GetTime<std::chrono::microseconds>().count ());
584
584
}
585
+ SetMockTime (0s);
585
586
586
- SetMockTime (0 );
587
- // Check that steady time and system time changes after a sleep
587
+ // Check that steady time changes after a sleep
588
588
const auto steady_ms_0 = Now<SteadyMilliseconds>();
589
589
const auto steady_0 = std::chrono::steady_clock::now ();
590
- const auto ms_0 = GetTime<std::chrono::milliseconds>();
591
- const auto us_0 = GetTime<std::chrono::microseconds>();
592
590
UninterruptibleSleep (1ms);
593
591
BOOST_CHECK (steady_ms_0 < Now<SteadyMilliseconds>());
594
592
BOOST_CHECK (steady_0 + 1ms <= std::chrono::steady_clock::now ());
595
- BOOST_CHECK (ms_0 < GetTime<std::chrono::milliseconds>());
596
- BOOST_CHECK (us_0 < GetTime<std::chrono::microseconds>());
597
593
}
598
594
599
595
BOOST_AUTO_TEST_CASE (test_IsDigit)
You can’t perform that action at this time.
0 commit comments