couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [24/48] couch commit: updated refs/heads/master to 7776921
Date Sat, 04 Apr 2015 23:29:19 GMT
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 <iilyak@ca.ibm.com>
Authored: Tue Feb 3 07:08:24 2015 -0800
Committer: ILYA Khlopotov <iilyak@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.


Mime
View raw message