Skip to content
Snippets Groups Projects
Commit 0ec72482 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add a delay to ensure that the test is valid

parent 044bf2e8
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ TEST(WolfTestTimeStamp, TimeStampEquality) ...@@ -76,6 +76,7 @@ TEST(WolfTestTimeStamp, TimeStampEquality)
ASSERT_EQ(time_stamp.get(), start.get()); ASSERT_EQ(time_stamp.get(), start.get());
std::this_thread::sleep_for(std::chrono::microseconds(1));
time_stamp.setToNow(); time_stamp.setToNow();
ASSERT_NE(time_stamp.get(), start.get()); ASSERT_NE(time_stamp.get(), start.get());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment