From 0ec7248291721f481c6fc1e60e347065b0e7ab16 Mon Sep 17 00:00:00 2001
From: Joan Sola <jsola@iri.upc.edu>
Date: Mon, 14 Nov 2016 11:42:24 +0100
Subject: [PATCH] Add a delay to ensure that the test is valid

---
 test/gtest_time_stamp.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/gtest_time_stamp.cpp b/test/gtest_time_stamp.cpp
index 90f69fb57..0505276d5 100644
--- a/test/gtest_time_stamp.cpp
+++ b/test/gtest_time_stamp.cpp
@@ -76,6 +76,7 @@ TEST(WolfTestTimeStamp, TimeStampEquality)
 
   ASSERT_EQ(time_stamp.get(), start.get());
 
+  std::this_thread::sleep_for(std::chrono::microseconds(1));
   time_stamp.setToNow();
 
   ASSERT_NE(time_stamp.get(), start.get());
-- 
GitLab