nickva commented on a change in pull request #587: Properly kill OS daemons 
during test
URL: https://github.com/apache/couchdb/pull/587#discussion_r120938603
 
 

 ##########
 File path: src/couch/test/couchdb_os_daemons_tests.erl
 ##########
 @@ -56,9 +56,16 @@ setup(DName) ->
     {Ctx, OsDPid}.
 
 teardown(_, {Ctx, OsDPid}) ->
-    test_util:stop_sync_throw(OsDPid, fun() ->
-        exit(OsDPid, shutdown)
-    end, {timeout, os_daemon_stop}, ?TIMEOUT),
+    try
+        test_util:stop_sync_throw(OsDPid, fun() ->
+            exit(OsDPid, shutdown)
+        end, {timeout, os_daemon_stop}, ?TIMEOUT)
+    catch
+        {timeout, os_daemon_stop} ->
+            Msg = "WARNING: OS daemons test stop ~p msec timeout exceeded",
+            io:format(standard_error, Msg, [?TIMEOUT]),
 
 Review comment:
   Good point will add the ~n.
   
   Thought of ?debugMsg but remembered @janl's observation that he didn't see 
?debugMsg lines in the logs.
   
   ?debugMsg say it outputs to console wonder if when running in Travis console 
and stderr end up being two different things...
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to