Skip to content

Commit

Permalink
Remove unreliable test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrockm committed Jan 20, 2024
1 parent 5355581 commit 20e4bb3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tsplp/test/UtilitiesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ using namespace std::chrono_literals;

TEST_CASE("Stop watch ", "[StopWatch]")
{
for (int i = 0; i < 100; ++i)
{
const tsplp::utilities::StopWatch watch;
std::this_thread::sleep_for(10ms);
const auto elapsed = watch.GetTime();
const tsplp::utilities::StopWatch watch;
std::this_thread::sleep_for(10ms);
const auto elapsed = watch.GetTime();

CHECK(elapsed.count() >= 10);
CHECK(elapsed.count() <= 13);
}
CHECK(elapsed.count() >= 10);
}

0 comments on commit 20e4bb3

Please sign in to comment.