test: consolidate blob lists
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id0a8b64ccaacd787eef799d46d9523307fafb422
diff --git a/test/firmware_state_notyetstarted_tarball_unittest.cpp b/test/firmware_state_notyetstarted_tarball_unittest.cpp
index b0e631c..5aa2baa 100644
--- a/test/firmware_state_notyetstarted_tarball_unittest.cpp
+++ b/test/firmware_state_notyetstarted_tarball_unittest.cpp
@@ -70,12 +70,13 @@
{
expectedState(FirmwareBlobHandler::UpdateState::notYetStarted);
- std::vector<std::string> expected = {hashBlobId, ubiTarballBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(handler->getBlobIds(),
+ UnorderedElementsAreArray({hashBlobId, ubiTarballBlobId}));
openToInProgress(ubiTarballBlobId);
- expected = {hashBlobId, ubiTarballBlobId, activeImageBlobId};
- EXPECT_THAT(handler->getBlobIds(), UnorderedElementsAreArray(expected));
+ EXPECT_THAT(handler->getBlobIds(),
+ UnorderedElementsAreArray(
+ {hashBlobId, ubiTarballBlobId, activeImageBlobId}));
}
} // namespace