aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-07-25 19:08:14 +0200
committerMicael Karlberg <[email protected]>2019-07-25 19:10:51 +0200
commit52eea8c9ede181cadb248321182b37f75f10c66d (patch)
tree65e58a98574673e14c1b43a52c729de1e58e8689 /lib
parent6e31e344a540e5b65c5ad96e5dcbb754ec8c818b (diff)
downloadotp-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')
-rw-r--r--lib/megaco/test/megaco_timer_test.erl2
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