summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-28 10:47:44 +0200
committerlouiz’ <louiz@louiz.org>2016-07-28 10:47:44 +0200
commit0d1e0629e7efe07bacce6a22e45ddfd7652eb505 (patch)
tree0da3280b7f5ada568211e78fc305e850d5a6684e /tests
parent5c78692fcd447d94be1eb43338f79790f53051f6 (diff)
downloadbiboumi-0d1e0629e7efe07bacce6a22e45ddfd7652eb505.tar.gz
biboumi-0d1e0629e7efe07bacce6a22e45ddfd7652eb505.tar.bz2
biboumi-0d1e0629e7efe07bacce6a22e45ddfd7652eb505.tar.xz
biboumi-0d1e0629e7efe07bacce6a22e45ddfd7652eb505.zip
Fix the timeout test, now that we don't wait 1ms too much everytime
Diffstat (limited to 'tests')
-rw-r--r--tests/timed_events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/timed_events.cpp b/tests/timed_events.cpp
index 3844f3d..d63abef 100644
--- a/tests/timed_events.cpp
+++ b/tests/timed_events.cpp
@@ -39,7 +39,7 @@ TEST_CASE("Test timed event expiration")
std::chrono::milliseconds timoute = TimedEventsManager::instance().get_timeout();
INFO("Sleeping for " << timoute.count() << "ms");
- std::this_thread::sleep_for(timoute);
+ std::this_thread::sleep_for(timoute + 1ms);
// Event is now expired
CHECK(TimedEventsManager::instance().execute_expired_events() == 1);