ResourceManager: replace allocFromPool() with allocVariant()

This commit is contained in:
Benoit Blanchon
2023-06-18 10:14:39 +02:00
parent 2cf7fc5427
commit 8147625921
9 changed files with 34 additions and 35 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ TEST_CASE("ResourceManager::clear()") {
ResourceManager resources(poolCapacity);
SECTION("Discards allocated variants") {
new (&resources) VariantSlot();
resources.allocVariant();
resources.clear();
REQUIRE(resources.size() == 0);