From 1055cdcef4fb78b8bc94176508c249f7a8f5d6a7 Mon Sep 17 00:00:00 2001 From: Keaton Sentak Date: Fri, 27 Sep 2024 15:09:39 -0400 Subject: [PATCH] feat: Update transport for test app to run --- .../cpp/src/shared/src/Transport/Transport.h | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/languages/cpp/src/shared/src/Transport/Transport.h b/languages/cpp/src/shared/src/Transport/Transport.h index a0c61718..d7fcfe37 100644 --- a/languages/cpp/src/shared/src/Transport/Transport.h +++ b/languages/cpp/src/shared/src/Transport/Transport.h @@ -420,12 +420,13 @@ namespace FireboltSDK #ifdef UNIT_TEST bool IsOpen() { - return (_channel.IsOpen() == true); + return true; } + #else bool IsOpen() { - return true; + return (_channel.IsOpen() == true); } #endif @@ -450,6 +451,11 @@ namespace FireboltSDK } #ifdef UNIT_TEST + bool Open(const uint32_t waitTime) + { + return true; + } +#else bool Open(const uint32_t waitTime) { bool result = true; @@ -458,11 +464,7 @@ namespace FireboltSDK } return (result); } -#else - bool Open(const uint32_t waitTime) - { - return true; - } + #endif void Close() { @@ -610,13 +612,13 @@ namespace FireboltSDK #ifdef UNIT_TEST inline bool IsOpen() { - return _channel->IsOpen(); + return true; } #else inline bool IsOpen() { - return true; - } + return _channel->IsOpen(); + } #endif void Revoke(const string &eventName)