Skip to content

Commit

Permalink
fix: Mock tests include idf_additions.h
Browse files Browse the repository at this point in the history
A number of IDF specific FreeRTOS API additions will be moved to
`#include "freertos/idf_additions.h". Mock tests need to include these to
properly use them as mock functions.
  • Loading branch information
Dazza0 committed Sep 4, 2023
1 parent 4b28192 commit f35aaa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions host_test/main/test_mqtt_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ extern "C" {
#include "Mockhttp_parser.h"
#include "Mockqueue.h"
#include "Mocktask.h"
#if __has_include ("Mockidf_additions.h")
/* Some functions were moved from "task.h" to "idf_additions.h" */
#include "Mockidf_additions.h"
#endif
#include "Mockesp_timer.h"

/*
Expand Down

0 comments on commit f35aaa1

Please sign in to comment.