Skip to content

Commit

Permalink
core-mqtt-mock: Fix logging stack mocks
Browse files Browse the repository at this point in the history
The LogWarning macro was being defined via SdkLogError instead of
SdkLogWarning, which made some unit test cases inaccurate.
LogWarning is now defined using the SdkLogWarning fake function.

Signed-off-by: Reuben Cartwright <[email protected]>
  • Loading branch information
RC-Repositories authored and aggarg committed Sep 25, 2024
1 parent 70ff1ad commit f1b7c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/helpers/logging/mocks/inc/logging_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DECLARE_FAKE_VOID_FUNC_VARARG( SdkLogError,
DECLARE_FAKE_VOID_FUNC_VARARG( SdkLogWarn,
const char *,
... );
#define LogWarn( message ) ( SdkLogError message )
#define LogWarn( message ) ( SdkLogWarn message )
DECLARE_FAKE_VOID_FUNC_VARARG( SdkLogInfo,
const char *,
... );
Expand Down

0 comments on commit f1b7c0c

Please sign in to comment.