aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-10-30 11:11:26 +0100
committerSiri Hansen <[email protected]>2012-10-30 11:19:35 +0100
commitc3d34e536e9516ab54a9f5e9a30e21043eda565b (patch)
treeb5b06f08d751b64a90d8e63ce275e29d78bad64c /lib/common_test
parent0dbae9d6fcdaa9b699e85a00fe44560b89cc24df (diff)
downloadotp-c3d34e536e9516ab54a9f5e9a30e21043eda565b.tar.gz
otp-c3d34e536e9516ab54a9f5e9a30e21043eda565b.tar.bz2
otp-c3d34e536e9516ab54a9f5e9a30e21043eda565b.zip
[common_test] Extend timer for flushing error logger
OTP-10040 If a busy test case generated lots of error messages, cth_log_redirect:post_end_per_testcase would crash with a timeout while waiting for the error logger to finish handling all error messages. The default timer is 5 seconds. This has now been extended to 5 minutes.
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/cth_log_redirect.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common_test/src/cth_log_redirect.erl b/lib/common_test/src/cth_log_redirect.erl
index 77f57c6195..78ae70f37e 100644
--- a/lib/common_test/src/cth_log_redirect.erl
+++ b/lib/common_test/src/cth_log_redirect.erl
@@ -54,7 +54,7 @@ post_init_per_group(_Group, _Config, Result, State) ->
post_end_per_testcase(_TC, _Config, Result, State) ->
%% Make sure that the event queue is flushed
%% before ending this test case.
- gen_event:call(error_logger, ?MODULE, flush),
+ gen_event:call(error_logger, ?MODULE, flush, 300000),
{Result, State}.
pre_end_per_group(Group, Config, {ct_log, Group}) ->