Browse Source

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

ieQu1 2 năm trước cách đây
mục cha
commit
974760d331
1 tập tin đã thay đổi với 13 bổ sung15 xóa
  1. 13 15
      apps/emqx/test/emqx_persistent_session_ds_state_tests.erl

+ 13 - 15
apps/emqx/test/emqx_persistent_session_ds_state_tests.erl

@@ -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
     ).
 
 %%================================================================================