aboutsummaryrefslogtreecommitdiffstats
path: root/lib/megaco/test/megaco_test_lib.hrl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-06-05 12:43:23 +0200
committerMicael Karlberg <[email protected]>2019-06-25 13:41:46 +0200
commit658c3ca4cf9db59fdb25e80b756509727ebf554a (patch)
tree02e651bc601ab003885fcb94ec3613d4f2419fdc /lib/megaco/test/megaco_test_lib.hrl
parent09abac433a59f0644316a54f61ade7132db673d1 (diff)
downloadotp-658c3ca4cf9db59fdb25e80b756509727ebf554a.tar.gz
otp-658c3ca4cf9db59fdb25e80b756509727ebf554a.tar.bz2
otp-658c3ca4cf9db59fdb25e80b756509727ebf554a.zip
[megaco|test] Improving the example and mib test suites
The examples test suite was hard to debug just based on its output (both plain debug printouts and printouts generated via dbg). Some timeouts has been added between the various actions so that it will be easier to understand the output.
Diffstat (limited to 'lib/megaco/test/megaco_test_lib.hrl')
-rw-r--r--lib/megaco/test/megaco_test_lib.hrl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/megaco/test/megaco_test_lib.hrl b/lib/megaco/test/megaco_test_lib.hrl
index 79a1493c40..b198619e2a 100644
--- a/lib/megaco/test/megaco_test_lib.hrl
+++ b/lib/megaco/test/megaco_test_lib.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1999-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1999-2019. 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.
@@ -80,9 +80,7 @@
-define(SLEEP(MSEC), megaco_test_lib:sleep(MSEC)).
--define(M(), megaco_test_lib:millis()).
--define(MDIFF(A,B), megaco_test_lib:millis_diff(A,B)).
-
-define(HOURS(T), megaco_test_lib:hours(T)).
-define(MINUTES(T), megaco_test_lib:minutes(T)).
-define(SECONDS(T), megaco_test_lib:seconds(T)).
+-define(FT(), megaco_test_lib:formated_timestamp()).