summaryrefslogtreecommitdiff
path: root/test/etap/test_web.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2011-02-02 19:11:28 +0000
committerAdam Kocoloski <kocolosk@apache.org>2011-02-02 19:11:28 +0000
commitf8c7e2a63e6244a209c9db34b332c276c8bee8de (patch)
tree574025bccb9cf09f16f9caea488e70d9f4f67c5c /test/etap/test_web.erl
parent8fe7d459e535acdb1f2975532b6f1248f5089596 (diff)
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
Diffstat (limited to 'test/etap/test_web.erl')
-rw-r--r--test/etap/test_web.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/etap/test_web.erl b/test/etap/test_web.erl
index 16438b31..ed78651f 100644
--- a/test/etap/test_web.erl
+++ b/test/etap/test_web.erl
@@ -25,7 +25,7 @@ start_link() ->
mochiweb_http:start([
{name, ?SERVER},
{loop, {?MODULE, loop}},
- {port, 5985}
+ {port, 0}
]).
loop(Req) ->