Don't reload archive text products that have already been loaded

This commit is contained in:
Dan Paulat 2025-04-06 00:11:09 -05:00
parent cc54e4d834
commit 33cfd4bc0e
4 changed files with 87 additions and 15 deletions

View file

@ -18,15 +18,16 @@ TEST(IemApiProviderTest, ListTextProducts)
auto torProducts = provider.ListTextProducts(date, {}, "TOR");
EXPECT_EQ(torProducts.size(), 35);
ASSERT_EQ(torProducts.has_value(), true);
EXPECT_EQ(torProducts.value().size(), 35);
if (torProducts.size() >= 1)
if (torProducts.value().size() >= 1)
{
EXPECT_EQ(torProducts.at(0), "202303250016-KMEG-WFUS54-TORMEG");
EXPECT_EQ(torProducts.value().at(0), "202303250016-KMEG-WFUS54-TORMEG");
}
if (torProducts.size() >= 35)
if (torProducts.value().size() >= 35)
{
EXPECT_EQ(torProducts.at(34), "202303252015-KFFC-WFUS52-TORFFC");
EXPECT_EQ(torProducts.value().at(34), "202303252015-KFFC-WFUS52-TORFFC");
}
}