Skip to content

Commit

Permalink
Test event insert from init
Browse files Browse the repository at this point in the history
  • Loading branch information
RaimoNiskanen committed Mar 17, 2018
1 parent 6ea4eb3 commit 57b6fd2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/stdlib/test/gen_statem_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2016-2017. All Rights Reserved.
%% Copyright Ericsson AB 2016-2018. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@

-include_lib("common_test/include/ct.hrl").

-compile(export_all).
-compile([export_all, nowarn_export_all]).
-behaviour(gen_statem).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -832,9 +832,14 @@ event_types(_Config) ->
%% Abusing the internal format of From...
#{init =>
fun () ->
{ok, start, undefined}
{ok, start1, undefined,
[{next_event,internal,0}]}
end,
start =>
start1 =>
fun (internal, 0, undefined) ->
{next_state, start2, undefined}
end,
start2 =>
fun ({call,_} = Call, Req, undefined) ->
{next_state, state1, undefined,
[{next_event,internal,1},
Expand Down

0 comments on commit 57b6fd2

Please sign in to comment.