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);