You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/12/09 18:13:09 UTC

[couchdb] 01/02: Silence test suite warning message about crypto

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch prototype/fdb-layer-delete-attachments
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0a7ae90ed287bdebe1ea3f4e2108e2463cb962a4
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Dec 9 12:11:38 2019 -0600

    Silence test suite warning message about crypto
---
 src/couch/src/test_util.erl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/couch/src/test_util.erl b/src/couch/src/test_util.erl
index 9566e8e..7705618 100644
--- a/src/couch/src/test_util.erl
+++ b/src/couch/src/test_util.erl
@@ -98,6 +98,10 @@ start_applications([App|Apps], Acc) when App == kernel; App == stdlib ->
     start_applications(Apps, Acc);
 start_applications([App|Apps], Acc) ->
     case application:start(App) of
+    {error, {already_started, crypto}} ->
+        % crypto is automatically started so silence the
+        % warning message
+        start_applications(Apps, [App | Acc]);
     {error, {already_started, App}} ->
         io:format(standard_error, "Application ~s was left running!~n", [App]),
         application:stop(App),