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/113-replication-attachment-comp.t | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/etap/113-replication-attachment-comp.t') diff --git a/test/etap/113-replication-attachment-comp.t b/test/etap/113-replication-attachment-comp.t index 19c48fc6..1f2b63f2 100755 --- a/test/etap/113-replication-attachment-comp.t +++ b/test/etap/113-replication-attachment-comp.t @@ -19,9 +19,6 @@ handler }). -default_config() -> - test_util:build_file("etc/couchdb/default_dev.ini"). - test_db_a_name() -> <<"couch_test_rep_att_comp_a">>. @@ -41,9 +38,9 @@ main(_) -> ok. test() -> - couch_server_sup:start_link([default_config()]), + couch_server_sup:start_link(test_util:config_files()), put(addr, couch_config:get("httpd", "bind_address", "127.0.0.1")), - put(port, couch_config:get("httpd", "port", "5984")), + put(port, integer_to_list(mochiweb_socket_server:get(couch_httpd, port))), application:start(inets), ibrowse:start(), timer:sleep(1000), -- cgit v1.2.3