Use mochiweb_http:stop instead of gen_server:cast(.., stop) The version of mochiweb currently used does not support sending a cast stop message, so use the builtin stop function.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/c8698058 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/c8698058 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/c8698058 Branch: refs/heads/1963-eunit-bigcouch Commit: c8698058edd3b519deba67b5e4a7f9db54a6cbf7 Parents: a205b83 Author: Russell Branca <[email protected]> Authored: Thu Aug 21 13:40:08 2014 -0700 Committer: Russell Branca <[email protected]> Committed: Mon Aug 25 13:19:13 2014 -0700 ---------------------------------------------------------------------- test/test_web.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/c8698058/test/test_web.erl ---------------------------------------------------------------------- diff --git a/test/test_web.erl b/test/test_web.erl index 98172d0..d568b7e 100644 --- a/test/test_web.erl +++ b/test/test_web.erl @@ -69,7 +69,7 @@ terminate(_Reason, _State) -> ok. stop() -> - gen_server:cast(?SERVER, stop). + mochiweb_http:stop(?SERVER). handle_call({check_request, Req}, _From, State) when is_function(State, 1) ->
