test(sessds): Don't trap exits in the test

This commit is contained in:
ieQu1 2024-01-15 12:30:29 +01:00
parent ebe2339810
commit 974760d331
1 changed files with 13 additions and 15 deletions

View File

@ -44,21 +44,19 @@ prop_consistency() ->
?FORALL(
Cmds,
commands(?MODULE),
?TRAPEXIT(
begin
init(),
{_History, State, Result} = run_commands(?MODULE, Cmds),
clean(),
?WHENFAIL(
io:format(
user,
"Operations: ~p~nState: ~p\nResult: ~p~n",
[Cmds, State, Result]
),
aggregate(command_names(Cmds), Result =:= ok)
)
end
)
begin
init(),
{_History, State, Result} = run_commands(?MODULE, Cmds),
clean(),
?WHENFAIL(
io:format(
user,
"Operations: ~p~nState: ~p\nResult: ~p~n",
[Cmds, State, Result]
),
aggregate(command_names(Cmds), Result =:= ok)
)
end
).
%%================================================================================