forked from bblanchon/ArduinoJson
Tests: rename ControllableAllocator to KillswitchAllocator
This commit is contained in:
1 parent
a8329564e2
commit
7a76da3bc7
4 files changed
+21
-20
No files matched your search
@@ -373,12 +373,12 @@ TEST_CASE("Deduplicate keys") {
|
||||
}
|
||||
|
||||
TEST_CASE("MemberProxy under memory constraints") {
|
||||
ControllableAllocator allocator;
|
||||
SpyingAllocator spy(&allocator);
|
||||
KillswitchAllocator killswitch;
|
||||
SpyingAllocator spy(&killswitch);
|
||||
JsonDocument doc(&spy);
|
||||
|
||||
SECTION("key allocation fails") {
|
||||
allocator.disable();
|
||||
killswitch.on();
|
||||
|
||||
doc[std::string("hello")] = "world";
|
||||
|
||||
|
||||
Reference in new issue
Block a user