aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-05-04 12:00:09 +0200
committerIngela Anderton Andin <[email protected]>2016-05-04 12:00:09 +0200
commit4c8fdca47c9e727dfcc1ab2049ffea35cef76b39 (patch)
treebcbd09adea8774f7eac8367887cad259e0cd2c2e /lib/ssl/test/ssl_test_lib.erl
parent97a1ae6023d728fa603368254a504bddc4dbe73c (diff)
parent0f782eb6377ddd1e5673c186b8b1a37edd610e4b (diff)
downloadotp-4c8fdca47c9e727dfcc1ab2049ffea35cef76b39.tar.gz
otp-4c8fdca47c9e727dfcc1ab2049ffea35cef76b39.tar.bz2
otp-4c8fdca47c9e727dfcc1ab2049ffea35cef76b39.zip
Merge branch 'ingela/ssl-gen-statem/OTP-13464'
* ingela/ssl-gen-statem/OTP-13464: ssl: Adapt DTLS to gen_statem ssl: Use gen_statem instead of gen_fsm
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index db9e1c3d38..38cc3532d8 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -1041,10 +1041,13 @@ receive_rizzo_duong_beast() ->
end
end.
-state([{data,[{"State", State}]} | _]) ->
- State;
-state([{data,[{"StateData", State}]} | _]) ->
+
+state([{data,[{"State", {_StateName, StateData}}]} | _]) -> %% gen_statem
+ StateData;
+state([{data,[{"State", State}]} | _]) -> %% gen_server
State;
+state([{data,[{"StateData", State}]} | _]) -> %% gen_fsm
+ State;
state([_ | Rest]) ->
state(Rest).