diff options
author | Micael Karlberg <[email protected]> | 2019-07-25 19:08:14 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-25 19:10:51 +0200 |
commit | 52eea8c9ede181cadb248321182b37f75f10c66d (patch) | |
tree | 65e58a98574673e14c1b43a52c729de1e58e8689 /lib/megaco/test/megaco_timer_test.erl | |
parent | 6e31e344a540e5b65c5ad96e5dcbb754ec8c818b (diff) | |
download | otp-52eea8c9ede181cadb248321182b37f75f10c66d.tar.gz otp-52eea8c9ede181cadb248321182b37f75f10c66d.tar.bz2 otp-52eea8c9ede181cadb248321182b37f75f10c66d.zip |
[megaco|test] Fixed timer 'start and stop' test case
When cancel'ing a timer, the ok return is either:
ok
or
{ok, Remaining}
The test case did not handle this (expected 'ok').
Diffstat (limited to 'lib/megaco/test/megaco_timer_test.erl')
-rw-r--r-- | lib/megaco/test/megaco_timer_test.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/megaco/test/megaco_timer_test.erl b/lib/megaco/test/megaco_timer_test.erl index d3e8e27636..5604a11e73 100644 --- a/lib/megaco/test/megaco_timer_test.erl +++ b/lib/megaco/test/megaco_timer_test.erl @@ -362,6 +362,8 @@ integer_timer_start_and_stop(Config) when is_list(Config) -> case tmr_stop(Ref) of ok -> ok; + {ok, _} -> + ok; CancelRes -> ?SKIP({cancel_failed, CancelRes}) end |