couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r1066591 - /couchdb/branches/1.1.x/test/etap/
Date Wed, 02 Feb 2011 19:11:29 GMT
Author: kocolosk
Date: Wed Feb  2 19:11:28 2011
New Revision: 1066591

URL: http://svn.apache.org/viewvc?rev=1066591&view=rev
Log:
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

Added:
    couchdb/branches/1.1.x/test/etap/random_port.ini
      - copied, changed from r1066404, couchdb/branches/1.1.x/test/etap/180-http-proxy.ini
Modified:
    couchdb/branches/1.1.x/test/etap/030-doc-from-json.t
    couchdb/branches/1.1.x/test/etap/031-doc-to-json.t
    couchdb/branches/1.1.x/test/etap/070-couch-db.t
    couchdb/branches/1.1.x/test/etap/110-replication-httpc.t
    couchdb/branches/1.1.x/test/etap/111-replication-changes-feed.t
    couchdb/branches/1.1.x/test/etap/112-replication-missing-revs.t
    couchdb/branches/1.1.x/test/etap/113-replication-attachment-comp.t
    couchdb/branches/1.1.x/test/etap/130-attachments-md5.t
    couchdb/branches/1.1.x/test/etap/140-attachment-comp.t
    couchdb/branches/1.1.x/test/etap/150-invalid-view-seq.t
    couchdb/branches/1.1.x/test/etap/160-vhosts.t
    couchdb/branches/1.1.x/test/etap/173-os-daemon-cfg-register.t
    couchdb/branches/1.1.x/test/etap/180-http-proxy.ini
    couchdb/branches/1.1.x/test/etap/180-http-proxy.t
    couchdb/branches/1.1.x/test/etap/test_util.erl.in
    couchdb/branches/1.1.x/test/etap/test_web.erl

Modified: couchdb/branches/1.1.x/test/etap/030-doc-from-json.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/030-doc-from-json.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/030-doc-from-json.t (original)
+++ couchdb/branches/1.1.x/test/etap/030-doc-from-json.t Wed Feb  2 19:11:28 2011
@@ -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(),

Modified: couchdb/branches/1.1.x/test/etap/031-doc-to-json.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/031-doc-to-json.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/031-doc-to-json.t (original)
+++ couchdb/branches/1.1.x/test/etap/031-doc-to-json.t Wed Feb  2 19:11:28 2011
@@ -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(12),
@@ -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_to_json_success(),
     ok.

Modified: couchdb/branches/1.1.x/test/etap/070-couch-db.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/070-couch-db.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/070-couch-db.t (original)
+++ couchdb/branches/1.1.x/test/etap/070-couch-db.t Wed Feb  2 19:11:28 2011
@@ -28,9 +28,7 @@ main(_) ->
 
 test() ->
 
-    couch_server_sup:start_link(
-        ["etc/couchdb/default_dev.ini", "etc/couchdb/local_dev.ini"]
-    ),
+    couch_server_sup:start_link(test_util:config_files()),
 
     couch_db:create(<<"etap-test-db">>, []),
     {ok, AllDbs} = couch_server:all_databases(),

Modified: couchdb/branches/1.1.x/test/etap/110-replication-httpc.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/110-replication-httpc.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/110-replication-httpc.t (original)
+++ couchdb/branches/1.1.x/test/etap/110-replication-httpc.t Wed Feb  2 19:11:28 2011
@@ -35,15 +35,13 @@
     conn = nil
 }).
 
-server() -> "http://127.0.0.1:5984/".
-dbname() -> "etap-test-db".
-
-config_files() ->
-    lists:map(fun test_util:build_file/1, [
-        "etc/couchdb/default_dev.ini",
-        "etc/couchdb/local_dev.ini"
+server() ->
+    lists:concat([
+        "http://127.0.0.1:", mochiweb_socket_server:get(couch_httpd, port), "/"
     ]).
 
+dbname() -> "etap-test-db".
+
 main(_) ->
     test_util:init_code_path(),
     
@@ -58,7 +56,7 @@ main(_) ->
     ok.
 
 test() ->
-    couch_server_sup:start_link(config_files()),
+    couch_server_sup:start_link(test_util:config_files()),
     ibrowse:start(),
     crypto:start(),
 

Modified: couchdb/branches/1.1.x/test/etap/111-replication-changes-feed.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/111-replication-changes-feed.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/111-replication-changes-feed.t (original)
+++ couchdb/branches/1.1.x/test/etap/111-replication-changes-feed.t Wed Feb  2 19:11:28 2011
@@ -38,12 +38,6 @@
     conn = nil
 }).
 
-config_files() ->
-    lists:map(fun test_util:build_file/1, [
-        "etc/couchdb/default_dev.ini",
-        "etc/couchdb/local_dev.ini"
-    ]).
-
 main(_) ->
     test_util:init_code_path(),
     
@@ -58,7 +52,7 @@ main(_) ->
     ok.
 
 test() ->
-    couch_server_sup:start_link(config_files()),
+    couch_server_sup:start_link(test_util:config_files()),
     ibrowse:start(),
     crypto:start(),
 
@@ -237,7 +231,12 @@ get_db() ->
 get_dbname(local) ->
     "etap-test-db";
 get_dbname(remote) ->
-    "http://127.0.0.1:5984/etap-test-db/".
+    server() ++ "etap-test-db/".
+
+server() ->
+    lists:concat([
+        "http://127.0.0.1:", mochiweb_socket_server:get(couch_httpd, port), "/"
+    ]).
 
 get_update_seq() ->
     Db = get_db(),

Modified: couchdb/branches/1.1.x/test/etap/112-replication-missing-revs.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/112-replication-missing-revs.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/112-replication-missing-revs.t (original)
+++ couchdb/branches/1.1.x/test/etap/112-replication-missing-revs.t Wed Feb  2 19:11:28 2011
@@ -42,7 +42,8 @@
 config_files() ->
     lists:map(fun test_util:build_file/1, [
         "etc/couchdb/default_dev.ini",
-        "etc/couchdb/local_dev.ini"
+        "etc/couchdb/local_dev.ini",
+        "test/etap/random_port.ini"
     ]).
 
 main(_) ->
@@ -185,9 +186,14 @@ start_changes_feed(local, Since, Continu
     couch_rep_changes_feed:start_link(self(), get_db(source), Since, Props);
 start_changes_feed(remote, Since, Continuous) ->
     Props = [{<<"continuous">>, Continuous}],
-    Db = #http_db{url = "http://127.0.0.1:5984/etap-test-source/"},
+    Db = #http_db{url = server() ++ "etap-test-source/"},
     couch_rep_changes_feed:start_link(self(), Db, Since, Props).
 
+server() ->
+    lists:concat([
+        "http://127.0.0.1:", mochiweb_socket_server:get(couch_httpd, port), "/"
+    ]).
+
 couch_rep_pid(Db) ->
     spawn(fun() -> couch_rep_pid_loop(Db) end).
 
@@ -203,6 +209,6 @@ start_missing_revs(local, Changes) ->
     MainPid = couch_rep_pid(TargetDb),
     couch_rep_missing_revs:start_link(MainPid, TargetDb, Changes, []);
 start_missing_revs(remote, Changes) ->
-    TargetDb = #http_db{url = "http://127.0.0.1:5984/etap-test-target/"},
+    TargetDb = #http_db{url = server() ++ "etap-test-target/"},
     MainPid = couch_rep_pid(TargetDb),
     couch_rep_missing_revs:start_link(MainPid, TargetDb, Changes, []).

Modified: couchdb/branches/1.1.x/test/etap/113-replication-attachment-comp.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/113-replication-attachment-comp.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/113-replication-attachment-comp.t (original)
+++ couchdb/branches/1.1.x/test/etap/113-replication-attachment-comp.t Wed Feb  2 19:11:28
2011
@@ -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),

Modified: couchdb/branches/1.1.x/test/etap/130-attachments-md5.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/130-attachments-md5.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/130-attachments-md5.t (original)
+++ couchdb/branches/1.1.x/test/etap/130-attachments-md5.t Wed Feb  2 19:11:28 2011
@@ -11,9 +11,6 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
-default_config() ->
-    test_util:build_file("etc/couchdb/default_dev.ini").
-
 test_db_name() ->
     <<"etap-test-db">>.
 
@@ -41,11 +38,10 @@ main(_) ->
     ok.
 
 test() ->
-    couch_server_sup:start_link([default_config()]),
+    couch_server_sup:start_link(test_util:config_files()),
     Addr = couch_config:get("httpd", "bind_address", any),
-    Port = list_to_integer(couch_config:get("httpd", "port", "5984")),
     put(addr, Addr),
-    put(port, Port),
+    put(port, mochiweb_socket_server:get(couch_httpd, port)),
     timer:sleep(1000),
 
     couch_server:delete(test_db_name(), []),

Modified: couchdb/branches/1.1.x/test/etap/140-attachment-comp.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/140-attachment-comp.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/140-attachment-comp.t (original)
+++ couchdb/branches/1.1.x/test/etap/140-attachment-comp.t Wed Feb  2 19:11:28 2011
@@ -13,9 +13,6 @@
 % License for the specific language governing permissions and limitations under
 % the License.
 
-default_config() ->
-    test_util:build_file("etc/couchdb/default_dev.ini").
-
 test_db_name() ->
     <<"couch_test_atts_compression">>.
 
@@ -33,9 +30,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),
     timer:sleep(1000),
     couch_server:delete(test_db_name(), []),

Modified: couchdb/branches/1.1.x/test/etap/150-invalid-view-seq.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/150-invalid-view-seq.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/150-invalid-view-seq.t (original)
+++ couchdb/branches/1.1.x/test/etap/150-invalid-view-seq.t Wed Feb  2 19:11:28 2011
@@ -19,9 +19,6 @@
     handler
 }).
 
-default_config() ->
-    test_util:build_file("etc/couchdb/default_dev.ini").
-
 test_db_name() ->
     <<"couch_test_invalid_view_seq">>.
 
@@ -42,7 +39,7 @@ main(_) ->
 %%       a huge and ugly but harmless stack trace is sent to stderr
 %%
 test() ->
-    couch_server_sup:start_link([default_config()]),
+    couch_server_sup:start_link(test_util:config_files()),
     timer:sleep(1000),
     delete_db(),
     create_db(),
@@ -54,7 +51,7 @@ test() ->
     backup_db_file(),
 
     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),
 
     create_new_doc(),
@@ -168,8 +165,9 @@ restore_backup_db_file() ->
         binary_to_list(test_db_name()) ++ ".couch"),
     ok = file:delete(DbFile),
     ok = file:rename(DbFile ++ ".backup", DbFile),
-    couch_server_sup:start_link([default_config()]),
+    couch_server_sup:start_link(test_util:config_files()),
     timer:sleep(1000),
+    put(port, integer_to_list(mochiweb_socket_server:get(couch_httpd, port))),
     ok.
 
 query_view_after_restore_backup() ->

Modified: couchdb/branches/1.1.x/test/etap/160-vhosts.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/160-vhosts.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/160-vhosts.t (original)
+++ couchdb/branches/1.1.x/test/etap/160-vhosts.t Wed Feb  2 19:11:28 2011
@@ -41,16 +41,14 @@
     handler
 }).
 
-server() -> "http://127.0.0.1:5984/".
+server() ->
+    lists:concat([
+        "http://127.0.0.1:", mochiweb_socket_server:get(couch_httpd, port), "/"
+    ]).
+
 dbname() -> "etap-test-db".
 admin_user_ctx() -> {user_ctx, #user_ctx{roles=[<<"_admin">>]}}.
 
-config_files() ->
-    lists:map(fun test_util:build_file/1, [
-        "etc/couchdb/default_dev.ini",
-        "etc/couchdb/local_dev.ini"
-    ]).
-
 main(_) ->
     test_util:init_code_path(),
 
@@ -65,7 +63,7 @@ main(_) ->
     ok.
 
 test() ->
-    couch_server_sup:start_link(config_files()),
+    couch_server_sup:start_link(test_util:config_files()),
     ibrowse:start(),
     crypto:start(),
 
@@ -118,6 +116,9 @@ test() ->
     ok = couch_config:set("vhosts", "*/test1", 
             "/etap-test-db/_design/doc1/_show/test", false), 
 
+    % let couch_httpd restart
+    timer:sleep(100),
+
     test_regular_request(),
     test_vhost_request(),
     test_vhost_request_with_qs(),

Modified: couchdb/branches/1.1.x/test/etap/173-os-daemon-cfg-register.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/173-os-daemon-cfg-register.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/173-os-daemon-cfg-register.t (original)
+++ couchdb/branches/1.1.x/test/etap/173-os-daemon-cfg-register.t Wed Feb  2 19:11:28 2011
@@ -24,11 +24,6 @@
     buf=[]
 }).
 
-config_files() ->
-    lists:map(fun test_util:build_file/1, [
-        "etc/couchdb/default_dev.ini"
-    ]).
-
 daemon_name() ->
     "wheee".
 
@@ -49,7 +44,7 @@ main(_) ->
     ok.
 
 test() ->
-    couch_config:start_link(config_files()),
+    couch_config:start_link(test_util:config_files()),
     couch_os_daemons:start_link(),
     
     DaemonCmd = daemon_cmd() ++ " 2> /dev/null",

Modified: couchdb/branches/1.1.x/test/etap/180-http-proxy.ini
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/180-http-proxy.ini?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/180-http-proxy.ini (original)
+++ couchdb/branches/1.1.x/test/etap/180-http-proxy.ini Wed Feb  2 19:11:28 2011
@@ -15,6 +15,6 @@
 ; specific language governing permissions and limitations
 ; under the License.
 
+; 49151 is IANA Reserved, let's assume no one is listening there
 [httpd_global_handlers]
-_test = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985/">>}
-_error = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5986/">>}
\ No newline at end of file
+_error = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:49151/">>}

Modified: couchdb/branches/1.1.x/test/etap/180-http-proxy.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/180-http-proxy.t?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/180-http-proxy.t (original)
+++ couchdb/branches/1.1.x/test/etap/180-http-proxy.t Wed Feb  2 19:11:28 2011
@@ -13,14 +13,16 @@
 
 -record(req, {method=get, path="", headers=[], body="", opts=[]}).
 
-default_config() ->
-    [
-        test_util:build_file("etc/couchdb/default_dev.ini"),
-        test_util:source_file("test/etap/180-http-proxy.ini")
-    ].
+server() ->
+    lists:concat([
+        "http://127.0.0.1:",
+        mochiweb_socket_server:get(couch_httpd, port),
+        "/_test/"
+    ]).
+
+proxy() ->
+    "http://127.0.0.1:" ++ integer_to_list(test_web:get_port()) ++ "/".
 
-server() -> "http://127.0.0.1:5984/_test/".
-proxy() -> "http://127.0.0.1:5985/".
 external() -> "https://www.google.com/".
 
 main(_) ->
@@ -65,11 +67,25 @@ check_request(Name, Req, Remote, Local) 
     Resp.
 
 test() ->
-    couch_server_sup:start_link(default_config()),
+    couch_server_sup:start_link([
+        test_util:build_file("test/etap/180-http-proxy.ini") |
+        test_util:config_files()
+    ]),
     ibrowse:start(),
     crypto:start(),
+
+    % start the test_web server on a random port
     test_web:start_link(),
-    
+    Url = lists:concat([
+        "{couch_httpd_proxy, handle_proxy_req, <<\"http://127.0.0.1:",
+        test_web:get_port(),
+        "/\">>}"
+    ]),
+    couch_config:set("httpd_global_handlers", "_test", Url, false),
+
+    % let couch_httpd restart
+    timer:sleep(100),
+
     test_basic(),
     test_alternate_status(),
     test_trailing_slash(),
@@ -320,7 +336,12 @@ test_passes_chunked_body_back() ->
 
 test_connect_error() ->
     Local = fun({ok, "500", _Headers, _Body}) -> true; (_) -> false end,
-    Req = #req{opts=[{url, "http://127.0.0.1:5984/_error"}]},
+    Url = lists:concat([
+        "http://127.0.0.1:",
+        mochiweb_socket_server:get(couch_httpd, port),
+        "/_error"
+    ]),
+    Req = #req{opts=[{url, Url}]},
     check_request("Connect error", Req, no_remote, Local).
 
 

Copied: couchdb/branches/1.1.x/test/etap/random_port.ini (from r1066404, couchdb/branches/1.1.x/test/etap/180-http-proxy.ini)
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/random_port.ini?p2=couchdb/branches/1.1.x/test/etap/random_port.ini&p1=couchdb/branches/1.1.x/test/etap/180-http-proxy.ini&r1=1066404&r2=1066591&rev=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/180-http-proxy.ini (original)
+++ couchdb/branches/1.1.x/test/etap/random_port.ini Wed Feb  2 19:11:28 2011
@@ -15,6 +15,5 @@
 ; specific language governing permissions and limitations
 ; under the License.
 
-[httpd_global_handlers]
-_test = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5985/">>}
-_error = {couch_httpd_proxy, handle_proxy_req, <<"http://127.0.0.1:5986/">>}
\ No newline at end of file
+[httpd]
+port = 0

Modified: couchdb/branches/1.1.x/test/etap/test_util.erl.in
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/test_util.erl.in?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/test_util.erl.in (original)
+++ couchdb/branches/1.1.x/test/etap/test_util.erl.in Wed Feb  2 19:11:28 2011
@@ -13,7 +13,7 @@
 -module(test_util).
 
 -export([init_code_path/0]).
--export([source_file/1, build_file/1]).
+-export([source_file/1, build_file/1, config_files/0]).
 
 srcdir() ->
     "@abs_top_srcdir@".
@@ -33,3 +33,9 @@ source_file(Name) ->
 build_file(Name) ->
     filename:join([builddir(), Name]).
 
+config_files() ->
+    lists:map(fun build_file/1, [
+        "etc/couchdb/default_dev.ini",
+        "etc/couchdb/local_dev.ini",
+        "test/etap/random_port.ini"
+    ]).

Modified: couchdb/branches/1.1.x/test/etap/test_web.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/test_web.erl?rev=1066591&r1=1066590&r2=1066591&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/test_web.erl (original)
+++ couchdb/branches/1.1.x/test/etap/test_web.erl Wed Feb  2 19:11:28 2011
@@ -25,7 +25,7 @@ start_link() ->
     mochiweb_http:start([
         {name, ?SERVER},
         {loop, {?MODULE, loop}},
-        {port, 5985}
+        {port, 0}
     ]).
 
 loop(Req) ->



Mime
View raw message