From b8ea001d5c014feba51177a38c2a9d7aec95bdc7 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 17 May 2015 01:12:19 +0200 Subject: [PATCH] Add some sleep before checking that Hub is dead --- src/vo/GVOHub.cpp | 2 +- test/test_GVO.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vo/GVOHub.cpp b/src/vo/GVOHub.cpp index 944e627..c85d22b 100644 --- a/src/vo/GVOHub.cpp +++ b/src/vo/GVOHub.cpp @@ -58,7 +58,7 @@ #define G_KEY 12345 /* __ Debug definitions __________________________________________________ */ -#define G_CONSOLE_DUMP +//#define G_CONSOLE_DUMP /*========================================================================== diff --git a/test/test_GVO.cpp b/test/test_GVO.cpp index 1dffcc9..8973140 100644 --- a/test/test_GVO.cpp +++ b/test/test_GVO.cpp @@ -167,6 +167,9 @@ void TestGVO::test_GVOClient(void) // Shutdown VO Hub client.shutdown_hub(); + // Sleep a bit to make sure that the Hub is dead + sleep(1); + // Test ping test_assert(!client.ping_hub(), "Ping Hub (should not be alive)."); -- libgit2 0.21.4