Skip to content

Instantly share code, notes, and snippets.

@KlausTrainer
Created September 28, 2015 10:36
Show Gist options
  • Save KlausTrainer/47bb6c0dadab35f75440 to your computer and use it in GitHub Desktop.
Save KlausTrainer/47bb6c0dadab35f75440 to your computer and use it in GitHub Desktop.
os_daemons_test
==> couch_log (eunit)
Running test function(s):
======================== EUnit ========================
There were no tests to run.
==> couch (eunit)
Running test function(s):
couchdb_os_daemons_tests:os_daemons_test_/0
======================== EUnit ========================
OS Daemons tests
undefined
*** context setup failed ***
**in function gen_server:call/2 (gen_server.erl, line 204)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 42)
**exit:{{{badmatch,undefined},
[{couch_log,notice,2,[{file,"src/couch_log.erl"},{line,44}]},
{config,handle_call,3,[{file,"src/config.erl"},{line,211}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,629}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,661}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},
{gen_server,call,
[config,
{set,"os_daemons","os_daemon_looper.escript",
"/home/klausi/dev/couchdb/src/couch/test/fixtures/os_daemon_looper.escript",
false,nil}]}}
undefined
*** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
called as start(couch_stats,[passthrough])
in call from test_util:mock/1 (src/test_util.erl, line 246)
in call from test_util:'-mock/1-lc$^0/1-0-'/1 (src/test_util.erl, line 239)
in call from test_util:start/3 (src/test_util.erl, line 227)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 40)
**error:{already_started,<0.112.0>}
undefined
*** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
called as start(couch_stats,[passthrough])
in call from test_util:mock/1 (src/test_util.erl, line 246)
in call from test_util:'-mock/1-lc$^0/1-0-'/1 (src/test_util.erl, line 239)
in call from test_util:start/3 (src/test_util.erl, line 227)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 40)
**error:{already_started,<0.112.0>}
undefined
*** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
called as start(couch_stats,[passthrough])
in call from test_util:mock/1 (src/test_util.erl, line 246)
in call from test_util:'-mock/1-lc$^0/1-0-'/1 (src/test_util.erl, line 239)
in call from test_util:start/3 (src/test_util.erl, line 227)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 40)
**error:{already_started,<0.112.0>}
undefined
*** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
called as start(couch_stats,[passthrough])
in call from test_util:mock/1 (src/test_util.erl, line 246)
in call from test_util:'-mock/1-lc$^0/1-0-'/1 (src/test_util.erl, line 239)
in call from test_util:start/3 (src/test_util.erl, line 227)
in call from couchdb_os_daemons_tests:setup/1 (test/couchdb_os_daemons_tests.erl, line 40)
**error:{already_started,<0.112.0>}
[done in 0.142 s]
=======================================================
Failed: 0. Skipped: 0. Passed: 0.
One or more tests were cancelled.
=ERROR REPORT==== 28-Sep-2015::12:34:54 ===
** Generic server config terminating
** Last message in was {set,"os_daemons","os_daemon_looper.escript",
"/home/klausi/dev/couchdb/src/couch/test/fixtures/os_daemon_looper.escript",
false,nil}
** When Server state == {config,[],[],undefined}
** Reason for termination ==
** {{badmatch,undefined},
[{couch_log,notice,2,[{file,"src/couch_log.erl"},{line,44}]},
{config,handle_call,3,[{file,"src/config.erl"},{line,211}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,629}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,661}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
=INFO REPORT==== 28-Sep-2015::12:34:54 ===
application: config
exited: killed
type: temporary
ERROR: One or more eunit tests failed.
ERROR: eunit failed while processing /home/klausi/dev/couchdb/src/couch: rebar_abort
@KlausTrainer
Copy link
Author

Here's how to run the test separately:

rebar setup_eunit && BUILDDIR=$(pwd) rebar -r eunit apps=couch tests="os_daemons_test"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment