forked from bblanchon/ArduinoJson
Preallocate pool list
This commit is contained in:
@ -57,8 +57,7 @@ TEST_CASE("ResourceManager::allocSlot()") {
|
||||
}
|
||||
|
||||
SECTION("Returns null if pool allocation fails") {
|
||||
TimebombAllocator allocator(1);
|
||||
ResourceManager resources(&allocator);
|
||||
ResourceManager resources(FailingAllocator::instance());
|
||||
|
||||
resources.allocSlot();
|
||||
|
||||
|
Reference in New Issue
Block a user