This EXPECT_TRUE condition is completely unaffected by the product code.
If you want to assert that future versions of this test code continue to properly execute the loop with the push_back at the bottom and clear the vector in between, OK, but don't disguise it as a test failure.