From f3ebe3dd876fabffa37e303129065c24f0d58432 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 12:00:09 +0200 Subject: [PATCH] FIX unittest --- test/unittests/apiTypesV2/Entity_test.cpp | 2 +- test/unittests/parse/compoundValue_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittests/apiTypesV2/Entity_test.cpp b/test/unittests/apiTypesV2/Entity_test.cpp index 16635b776f..cb84e0b16f 100644 --- a/test/unittests/apiTypesV2/Entity_test.cpp +++ b/test/unittests/apiTypesV2/Entity_test.cpp @@ -119,7 +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; + delete ceVectorP; utExit(); } diff --git a/test/unittests/parse/compoundValue_test.cpp b/test/unittests/parse/compoundValue_test.cpp index 907cd4bddf..fee9522ba5 100644 --- a/test/unittests/parse/compoundValue_test.cpp +++ b/test/unittests/parse/compoundValue_test.cpp @@ -44,7 +44,7 @@ TEST(compoundValue, tenCompounds) utInit(); upcrP = &reqData.upcr.res; - rendered = upcrP->toJsonV1(false); + rendered = upcrP->toJsonV1(); utExit(); }