From 3e0ac73d8343edb9a1582140e351e35dc2817ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Fri, 30 Aug 2024 11:01:41 +0200 Subject: [PATCH] FIX unit tests --- test/unittests/apiTypesV2/Entity_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unittests/apiTypesV2/Entity_test.cpp b/test/unittests/apiTypesV2/Entity_test.cpp index e05e367454..16635b776f 100644 --- a/test/unittests/apiTypesV2/Entity_test.cpp +++ b/test/unittests/apiTypesV2/Entity_test.cpp @@ -72,6 +72,8 @@ TEST(Entity, check) enP->isPattern = ""; EXPECT_EQ("Invalid value for isPattern", enP->check(EntitiesRequest)); + delete enP; + utExit(); } @@ -117,5 +119,7 @@ TEST(Entity, checkV1) EXPECT_EQ("OK", testDataFromFile(expectedBuf, sizeof(expectedBuf), outfile1)) << "Error getting test data from '" << outfile1 << "'"; EXPECT_STREQ(expectedBuf, out.c_str()); + delete enP; + utExit(); }