aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-02-26 10:51:53 +0100
committerRaimo Niskanen <[email protected]>2016-02-26 10:51:53 +0100
commitefda33e83f2bbc666f6ec261d54ad95c38acbc36 (patch)
tree31836a3a418b0d97082d040edd06e95209cda1f5 /lib/stdlib/test
parent1e4831762b5ab4bd2210fc9e0a204e00dfe81b39 (diff)
downloadotp-efda33e83f2bbc666f6ec261d54ad95c38acbc36.tar.gz
otp-efda33e83f2bbc666f6ec261d54ad95c38acbc36.tar.bz2
otp-efda33e83f2bbc666f6ec261d54ad95c38acbc36.zip
Allow actions without containing list
Type check atom state as early as possible
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/gen_statem_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/test/gen_statem_SUITE.erl b/lib/stdlib/test/gen_statem_SUITE.erl
index 09b309c36f..0429c0e5f4 100644
--- a/lib/stdlib/test/gen_statem_SUITE.erl
+++ b/lib/stdlib/test/gen_statem_SUITE.erl
@@ -1178,7 +1178,7 @@ idle({call,From}, {delayed_answer,T}, Data) ->
end;
idle({call,From}, {timeout,Time}, _Data) ->
{next_state,timeout,{From,Time},
- [{timeout,Time,idle}]};
+ {timeout,Time,idle}};
idle(Type, Content, Data) ->
case handle_common_events(Type, Content, idle, Data) of
undefined ->
@@ -1220,7 +1220,7 @@ timeout3(_, _, Data) ->
wfor_conf({call,From}, confirm, Data) ->
{next_state,connected,Data,
- [{reply,From,yes}]};
+ {reply,From,yes}};
wfor_conf(cast, {ping,_,_}, _) ->
{keep_state_and_data,[postpone]};
wfor_conf(cast, confirm, Data) ->
@@ -1241,7 +1241,7 @@ wfor_conf(Type, Content, Data) ->
connected({call,From}, {msg,Ref}, Data) ->
{keep_state,Data,
- [{reply,From,{ack,Ref}}]};
+ {reply,From,{ack,Ref}}};
connected(cast, {msg,From,Ref}, Data) ->
From ! {ack,Ref},
{keep_state,Data};