From f8c7e2a63e6244a209c9db34b332c276c8bee8de Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 2 Feb 2011 19:11:28 +0000 Subject: Make server listen on an unused port during unit tests This prevents the tests from failing when another instance of CouchDB is already running on the same machine. Also merging in the fixup of the _error resource from r1066590. COUCHDB-1049 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1066591 13f79535-47bb-0310-9956-ffa450edef68 --- test/etap/030-doc-from-json.t | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/etap/030-doc-from-json.t') diff --git a/test/etap/030-doc-from-json.t b/test/etap/030-doc-from-json.t index c4ef649a..1090fc38 100755 --- a/test/etap/030-doc-from-json.t +++ b/test/etap/030-doc-from-json.t @@ -20,9 +20,6 @@ -record(att, {name, type, att_len, disk_len, md5= <<>>, revpos=0, data, encoding=identity}). -default_config() -> - test_util:build_file("etc/couchdb/default_dev.ini"). - main(_) -> test_util:init_code_path(), etap:plan(26), @@ -36,7 +33,7 @@ main(_) -> ok. test() -> - couch_config:start_link([default_config()]), + couch_config:start_link(test_util:config_files()), couch_config:set("attachments", "compression_level", "0"), ok = test_from_json_success(), ok = test_from_json_errors(), -- cgit v1.2.3