bmc: add verify blob id only when ready
Originally, the verify blob id was always present. Now, it's only added
when the state transitions initially to verificationPending.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I706273519354a7a4a98d9fe4f600c6455a69cc3c
diff --git a/test/firmware_delete_unittest.cpp b/test/firmware_delete_unittest.cpp
index 7f36a56..ff2d7b3 100644
--- a/test/firmware_delete_unittest.cpp
+++ b/test/firmware_delete_unittest.cpp
@@ -13,6 +13,9 @@
namespace ipmi_flash
{
+namespace
+{
+
using ::testing::Eq;
using ::testing::Return;
using ::testing::StrEq;
@@ -32,7 +35,7 @@
/* The active hash blob_id was added. */
auto currentBlobs = handler->getBlobIds();
- EXPECT_EQ(4, currentBlobs.size());
+ EXPECT_EQ(3, currentBlobs.size());
EXPECT_EQ(1, std::count(currentBlobs.begin(), currentBlobs.end(),
activeHashBlobId));
@@ -54,4 +57,5 @@
activeHashBlobId));
}
+} // namespace
} // namespace ipmi_flash