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_close_unittest.cpp b/test/firmware_close_unittest.cpp
index 6242d54..a46973f 100644
--- a/test/firmware_close_unittest.cpp
+++ b/test/firmware_close_unittest.cpp
@@ -13,6 +13,9 @@
namespace ipmi_flash
{
+namespace
+{
+
using ::testing::Eq;
using ::testing::Return;
using ::testing::StrEq;
@@ -35,7 +38,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));
@@ -62,7 +65,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));
@@ -71,4 +74,5 @@
EXPECT_TRUE(handler->close(0));
}
+} // namespace
} // namespace ipmi_flash