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( ?FORALL(
Cmds, Cmds,
commands(?MODULE), commands(?MODULE),
?TRAPEXIT( begin
begin init(),
init(), {_History, State, Result} = run_commands(?MODULE, Cmds),
{_History, State, Result} = run_commands(?MODULE, Cmds), clean(),
clean(), ?WHENFAIL(
?WHENFAIL( io:format(
io:format( user,
user, "Operations: ~p~nState: ~p\nResult: ~p~n",
"Operations: ~p~nState: ~p\nResult: ~p~n", [Cmds, State, Result]
[Cmds, State, Result] ),
), aggregate(command_names(Cmds), Result =:= ok)
aggregate(command_names(Cmds), Result =:= ok) )
) end
end
)
). ).
%%================================================================================ %%================================================================================