aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-03-24 17:08:44 +0100
committerIngela Anderton Andin <[email protected]>2016-05-03 13:46:50 +0200
commit67de1ba82d1af910dc6ab6d41a1f22dbfb39f658 (patch)
treed5e60bb5228d1784b22a33b4980959cba0281368 /lib/ssl/test/ssl_test_lib.erl
parent94e70f82df417d9e673a13d101007d7ae8932df7 (diff)
downloadotp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.tar.gz
otp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.tar.bz2
otp-67de1ba82d1af910dc6ab6d41a1f22dbfb39f658.zip
ssl: Use gen_statem instead of gen_fsm
Also reduce timing issues in tests
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).