You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2016/03/01 21:01:19 UTC
[46/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack
to e44a372
Use mock since we don't start epi on tests
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/bdca56a8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/bdca56a8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/bdca56a8
Branch: refs/heads/split_out_httpd_stack
Commit: bdca56a824e787375a0f2e4229430c31143699a5
Parents: 3e6eda7
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Tue Mar 1 08:27:40 2016 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Tue Mar 1 08:35:10 2016 -0800
----------------------------------------------------------------------
test/couch_httpd_error_info_test.erl | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/bdca56a8/test/couch_httpd_error_info_test.erl
----------------------------------------------------------------------
diff --git a/test/couch_httpd_error_info_test.erl b/test/couch_httpd_error_info_test.erl
index 5434fdf..26532f6 100644
--- a/test/couch_httpd_error_info_test.erl
+++ b/test/couch_httpd_error_info_test.erl
@@ -163,6 +163,9 @@ error_info_test() ->
}
],
+ meck:new(couch_httpd_plugin, [passthrow]),
+ meck:expect(couch_httpd_plugin, handle_error, fun(E) -> E end),
lists:foreach(fun({Arg, Result}) ->
- ?assertEqual(Result, apply(chttpd, error_info, [Arg]))
- end, ArgResult).
+ ?assertEqual(Result, apply(couch_httpd, error_info, [Arg]))
+ end, ArgResult),
+ meck:unload(couch_httpd_plugin).