You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/08/16 21:24:11 UTC
svn commit: r686546 - in /incubator/couchdb/branches/runtimeconfig/test:
couch_config_test.erl couch_config_writer_test.erl
Author: jan
Date: Sat Aug 16 12:24:11 2008
New Revision: 686546
URL: http://svn.apache.org/viewvc?rev=686546&view=rev
Log:
make tests work with new config file API
Modified:
incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl
incubator/couchdb/branches/runtimeconfig/test/couch_config_writer_test.erl
Modified: incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl?rev=686546&r1=686545&r2=686546&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl (original)
+++ incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl Sat Aug 16 12:24:11 2008
@@ -30,11 +30,12 @@
store(Key, Value) ->
- couch_config:start_link(),
- couch_config:init_value(Key, Value),
- Result = couch_config:get(Key),
+ couch_config:start_link(["couch.ini"]),
+
+ couch_config:store({"test_module", Key}, Value),
+ Result = couch_config:get({"test_module", Key}),
couch_config:unset(Key),
- couch_config:stop(),
+ couch_config:terminate(end_of_test, ok),
Value = Result.
\ No newline at end of file
Modified: incubator/couchdb/branches/runtimeconfig/test/couch_config_writer_test.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/runtimeconfig/test/couch_config_writer_test.erl?rev=686546&r1=686545&r2=686546&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/test/couch_config_writer_test.erl (original)
+++ incubator/couchdb/branches/runtimeconfig/test/couch_config_writer_test.erl Sat Aug 16 12:24:11 2008
@@ -169,7 +169,7 @@
file:write_file(Filename, Contents),
% call replace function
- couch_config_writer:save_config(Config, Filename),
+ couch_config_writer:save_to_file(Config, Filename),
% compare new file with expected file
{ok, Result_} = file:read_file(Filename),