Skip to content

Commit

Permalink
feat: Update transport for test app to run
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Sep 27, 2024
1 parent cb6ebd1 commit 1055cdc
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions languages/cpp/src/shared/src/Transport/Transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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;
Expand All @@ -458,11 +464,7 @@ namespace FireboltSDK
}
return (result);
}
#else
bool Open(const uint32_t waitTime)
{
return true;
}

#endif
void Close()
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1055cdc

Please sign in to comment.