Blob Blame History Raw
From c6eeba4570efa2fe9dbe6358c79d7ffd3f1dc4d7 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <dan.callaghan@opengear.com>
Date: Fri, 15 Nov 2019 16:34:56 +1000
Subject: [PATCH] tests: disable timeout test

This fails (ConnectionError is thrown instead of TimeoutError) if the
tests are run in an isolated network namespace.
---
 test/test2.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test2.cc b/test/test2.cc
index 43b9a40..83871b6 100644
--- a/test/test2.cc
+++ b/test/test2.cc
@@ -30,7 +30,8 @@ TEST(CONNECTION, RECONNECT) {
 }
 
 TEST(CONNECTION, FAILURE) {
-    ASSERT_THROW(Client borked("example.org", 3000, 1.0), TimeoutException);
+    // Fails in mock due to isolated network
+    //ASSERT_THROW(Client borked("example.org", 3000, 1.0), TimeoutException);
     return 0;
 }
 
-- 
2.21.0