security: Separate TPM locator modification and database resetting in PIB
Change-Id: I80c2805b6e1204b95d59a090a6a04e1ee62fb6e5
Refs: #3203
diff --git a/tests/unit-tests/security/pib/key.t.cpp b/tests/unit-tests/security/pib/key.t.cpp
index 6a543f6..9391f53 100644
--- a/tests/unit-tests/security/pib/key.t.cpp
+++ b/tests/unit-tests/security/pib/key.t.cpp
@@ -78,10 +78,7 @@
BOOST_REQUIRE_NO_THROW(key11.getDefaultCertificate());
const auto& defaultCert = key11.getDefaultCertificate();
- BOOST_CHECK_EQUAL_COLLECTIONS(defaultCert.wireEncode().wire(),
- defaultCert.wireEncode().wire() + defaultCert.wireEncode().size(),
- id1Key1Cert1.wireEncode().wire(),
- id1Key1Cert1.wireEncode().wire() + id1Key1Cert1.wireEncode().size());
+ BOOST_CHECK(defaultCert.wireEncode() == id1Key1Cert1.wireEncode());
key11.removeCertificate(id1Key1Cert1.getName());
BOOST_CHECK_THROW(key11.getCertificate(id1Key1Cert1.getName()), Pib::Error);