Skip to content

Commit

Permalink
Fix: add Mainloop init in udp endpoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoColli committed Dec 17, 2024
1 parent 475ee85 commit cfc0e5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/endpoints_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mainloop.h"

#include "autolog.h"
#include "binlog.h"
Expand Down Expand Up @@ -564,6 +565,7 @@ TEST(UartEndpointTest, ConfigValidateDevice)
*/
TEST(UdpEndpointTest, Init)
{
Mainloop::init();
UdpEndpoint udp{"testname"};

EXPECT_EQ(udp.get_type(), ENDPOINT_TYPE_UDP);
Expand Down

0 comments on commit cfc0e5a

Please sign in to comment.