From 42286054708287fae3d76c58e655e570385ac887 Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Mon, 3 Feb 2020 11:39:48 +0100 Subject: [PATCH] Set store map size theshold to 0 ifdef TEST --- src/aeb_fate_maps.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aeb_fate_maps.erl b/src/aeb_fate_maps.erl index e57831d..59f2a88 100644 --- a/src/aeb_fate_maps.erl +++ b/src/aeb_fate_maps.erl @@ -25,7 +25,11 @@ %% Size in bytes of serialization of a map for which we turn it into a store %% map. It's not worth turning small maps into store maps. %% Under consensus! +-ifdef(TEST). +-define(STORE_MAP_THRESHOLD, 0). +-else. -define(STORE_MAP_THRESHOLD, 100). +-endif. -type fate_value() :: aeb_fate_data:fate_type(). -type fate_value_or_tombstone() :: fate_value() | ?FATE_MAP_TOMBSTONE.