summaryrefslogtreecommitdiff
path: root/src/fabric/test/fabric2_test_util.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric/test/fabric2_test_util.erl')
-rw-r--r--src/fabric/test/fabric2_test_util.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fabric/test/fabric2_test_util.erl b/src/fabric/test/fabric2_test_util.erl
index acbe252b1..3d3477c5d 100644
--- a/src/fabric/test/fabric2_test_util.erl
+++ b/src/fabric/test/fabric2_test_util.erl
@@ -21,6 +21,9 @@
]).
+-include_lib("fabric/include/fabric2.hrl").
+
+
-define(PDICT_ERROR_IN_FOLD_RANGE, '$fabric2_error_in_fold_range').
-define(PDICT_ERROR_IN_USER_FUN, '$fabric2_error_throw_in_user_fun').
@@ -68,7 +71,7 @@ maybe_tx_too_old(Key) ->
put(Key, {Skip - 1, Count});
{0, Count} when is_integer(Count), Count > 0 ->
put(Key, {0, Count - 1}),
- error({erlfdb_error, 1007});
+ error({erlfdb_error, ?ERLFDB_TRANSACTION_TOO_OLD});
{0, 0} ->
ok;
undefined ->