diff options
author | Raimo Niskanen <[email protected]> | 2017-02-07 22:38:36 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2017-04-20 15:51:27 +0200 |
commit | bca4b5c87fd1aae2fdcb78b605181393a0caf9d9 (patch) | |
tree | 4d7a038ec1ea2f978b9ad98b5bcdd3ce9c52ff59 /lib/stdlib/test/gen_statem_SUITE.erl | |
parent | d30cae56d82763681b633cba25ad553eb672ec16 (diff) | |
download | otp-bca4b5c87fd1aae2fdcb78b605181393a0caf9d9.tar.gz otp-bca4b5c87fd1aae2fdcb78b605181393a0caf9d9.tar.bz2 otp-bca4b5c87fd1aae2fdcb78b605181393a0caf9d9.zip |
Implement erlang:start_timer opts
Diffstat (limited to 'lib/stdlib/test/gen_statem_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/gen_statem_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/test/gen_statem_SUITE.erl b/lib/stdlib/test/gen_statem_SUITE.erl index ac27c9fc79..ee61099155 100644 --- a/lib/stdlib/test/gen_statem_SUITE.erl +++ b/lib/stdlib/test/gen_statem_SUITE.erl @@ -1597,8 +1597,9 @@ idle({call,From}, {delayed_answer,T}, Data) -> throw({keep_state,Data}) end; idle({call,From}, {timeout,Time}, _Data) -> + AbsTime = erlang:monotonic_time(millisecond) + Time, {next_state,timeout,{From,Time}, - {timeout,Time,idle}}; + {timeout,AbsTime,idle,[{abs,true}]}}; idle(cast, next_event, _Data) -> {next_state,next_events,[a,b,c], [{next_event,internal,a}, |