You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/04/05 01:29:19 UTC
[24/48] couch commit: updated refs/heads/master to 7776921
Enable couch_uuid_tests
COUCHDB-2547
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/c2d3d457
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/c2d3d457
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/c2d3d457
Branch: refs/heads/master
Commit: c2d3d4571b38ddb7499681d694ae5f03f69417f7
Parents: 9985c2c
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Tue Feb 3 07:08:24 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Tue Feb 10 11:04:36 2015 -0800
----------------------------------------------------------------------
test/couch_uuids_tests.erl | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/c2d3d457/test/couch_uuids_tests.erl
----------------------------------------------------------------------
diff --git a/test/couch_uuids_tests.erl b/test/couch_uuids_tests.erl
index defea4f..a836ecc 100644
--- a/test/couch_uuids_tests.erl
+++ b/test/couch_uuids_tests.erl
@@ -17,12 +17,10 @@
-define(TIMEOUT_S, 20).
--ifdef(run_broken_tests).
-
setup() ->
- {ok, Pid} = config:start_link(?CONFIG_CHAIN),
+ Ctx = test_util:start(?MODULE, [], [{dont_mock, [config]}]),
couch_uuids:start(),
- Pid.
+ Ctx.
setup(Opts) ->
Pid = setup(),
@@ -32,12 +30,12 @@ setup(Opts) ->
end, Opts),
Pid.
-teardown(Pid) ->
+teardown(Ctx) ->
couch_uuids:stop(),
- test_util:stop_config(Pid).
+ test_util:stop(Ctx).
-teardown(_, Pid) ->
- teardown(Pid).
+teardown(_, Ctx) ->
+ teardown(Ctx).
default_test_() ->
@@ -155,5 +153,3 @@ test_same_suffix(N, Suffix) ->
Suffix -> test_same_suffix(N - 1, Suffix);
_ -> false
end.
-
--endif.