Tests: rename ControllableAllocator to KillswitchAllocator

This commit is contained in:
Benoit Blanchon committed 2023-07-25 14:46:25 +02:00
1 parent a8329564e2
commit 7a76da3bc7
4 files changed
+21 -20

No files matched your search

+3 -3
View File
@@ -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";