tests: avoid comparing Interests with operator==
Refs: #4569
Change-Id: Ia75169c147976d3980dd113054ba560caf0f33c8
diff --git a/tests/daemon/table/name-tree.t.cpp b/tests/daemon/table/name-tree.t.cpp
index 6c2f627..d51474d 100644
--- a/tests/daemon/table/name-tree.t.cpp
+++ b/tests/daemon/table/name-tree.t.cpp
@@ -260,7 +260,7 @@
BOOST_CHECK_EQUAL(pit1weak.use_count(), 1); // npe is the sole owner of pit1
npe.erasePitEntry(pit1ptr);
BOOST_REQUIRE_EQUAL(npe.getPitEntries().size(), 1);
- BOOST_CHECK_EQUAL(npe.getPitEntries().front()->getInterest(), *interest2);
+ BOOST_CHECK(&npe.getPitEntries().front()->getInterest() == interest2.get());
npe.erasePitEntry(pit2.get());
BOOST_CHECK_EQUAL(npe.hasPitEntries(), false);
diff --git a/tests/daemon/table/pit.t.cpp b/tests/daemon/table/pit.t.cpp
index 99d23e7..ca9ac3c 100644
--- a/tests/daemon/table/pit.t.cpp
+++ b/tests/daemon/table/pit.t.cpp
@@ -319,8 +319,8 @@
pit.insert(*interestABC1);
BOOST_CHECK_EQUAL(pit.size(), 1);
BOOST_CHECK(pit.begin() != pit.end());
- BOOST_CHECK(pit.begin()->getInterest() == *interestABC1);
- BOOST_CHECK((*pit.begin()).getInterest() == *interestABC1);
+ BOOST_CHECK(&pit.begin()->getInterest() == interestABC1.get());
+ BOOST_CHECK(&(*pit.begin()).getInterest() == interestABC1.get());
auto i = pit.begin();
auto j = pit.begin();