mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-23 07:17:30 +02:00
Preallocate pool list
This commit is contained in:
@ -74,7 +74,7 @@ TEST_CASE("JsonObject::set()") {
|
||||
}
|
||||
|
||||
SECTION("copy fails in the middle of an object") {
|
||||
TimebombAllocator allocator(3);
|
||||
TimebombAllocator allocator(2);
|
||||
JsonDocument doc3(&allocator);
|
||||
JsonObject obj3 = doc3.to<JsonObject>();
|
||||
|
||||
@ -88,7 +88,7 @@ TEST_CASE("JsonObject::set()") {
|
||||
}
|
||||
|
||||
SECTION("copy fails in the middle of an array") {
|
||||
TimebombAllocator allocator(2);
|
||||
TimebombAllocator allocator(1);
|
||||
JsonDocument doc3(&allocator);
|
||||
JsonObject obj3 = doc3.to<JsonObject>();
|
||||
|
||||
|
Reference in New Issue
Block a user