Commit b8ea001d5c014feba51177a38c2a9d7aec95bdc7

Authored by Jürgen Knödlseder
1 parent 0079d73e

Add some sleep before checking that Hub is dead

src/vo/GVOHub.cpp
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 #define G_KEY 12345 58 #define G_KEY 12345
59 59
60 /* __ Debug definitions __________________________________________________ */ 60 /* __ Debug definitions __________________________________________________ */
61 -#define G_CONSOLE_DUMP 61 +//#define G_CONSOLE_DUMP
62 62
63 63
64 /*========================================================================== 64 /*==========================================================================
test/test_GVO.cpp
@@ -167,6 +167,9 @@ void TestGVO::test_GVOClient(void) @@ -167,6 +167,9 @@ void TestGVO::test_GVOClient(void)
167 // Shutdown VO Hub 167 // Shutdown VO Hub
168 client.shutdown_hub(); 168 client.shutdown_hub();
169 169
  170 + // Sleep a bit to make sure that the Hub is dead
  171 + sleep(1);
  172 +
170 // Test ping 173 // Test ping
171 test_assert(!client.ping_hub(), "Ping Hub (should not be alive)."); 174 test_assert(!client.ping_hub(), "Ping Hub (should not be alive).");
172 175