couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r686559 - in /incubator/couchdb/branches/runtimeconfig/test: couch_config_test.erl couch_config_writer_test.erl
Date Sat, 16 Aug 2008 20:53:03 GMT
Author: jan
Date: Sat Aug 16 13:52:52 2008
New Revision: 686559

URL: http://svn.apache.org/viewvc?rev=686559&view=rev
Log:
make tests work with latest changes.

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=686559&r1=686558&r2=686559&view=diff
==============================================================================
--- incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl (original)
+++ incubator/couchdb/branches/runtimeconfig/test/couch_config_test.erl Sat Aug 16 13:52:52
2008
@@ -29,7 +29,9 @@
     store({key, subkey}, value).
 
     
-store(Key, Value) ->
+store(Key2, Value2) ->
+    Key = binary_to_list(term_to_binary(Key2)),
+    Value = binary_to_list(term_to_binary(Value2)),
 
     couch_config:start_link(["couch.ini"]),
 

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=686559&r1=686558&r2=686559&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
13:52:52 2008
@@ -6,8 +6,8 @@
 couch_config_writer_test() ->
     [
         fun() -> replace_existing_variable() end,
-        fun() -> append_new_variable() end
-%%        fun() -> append_new_module() end %not yet implemented
+        fun() -> append_new_variable() end,
+        fun() -> append_new_module() end
     ].
 
 
@@ -135,8 +135,7 @@
 javascript=/Users/jan/Work/runcouch/conf9/bin/couchjs /Users/jan/Work/runcouch/conf9/share/couchdb/server/main.js
 
 [CouchDB Query Server Options]
-QueryTimeout=5000 ; 5 seconds
-",
+QueryTimeout=5000 ; 5 seconds",
 
     Expect = "; etc/couchdb/couch.ini.tpl.  Generated from couch.ini.tpl.in by configure.
 
@@ -161,11 +160,12 @@
 QueryTimeout=5000 ; 5 seconds
 
 [Erlang]
-Option=Value",
+Option=Value
+",
     run_operation_and_compare_results(Contents, Expect, {{"Erlang", "Option"}, "Value"}).
   
 run_operation_and_compare_results(Contents, Expect, Config) ->
-    Filename = "test.ini",
+    Filename = "couch.ini",
     file:write_file(Filename, Contents),
 
     % call replace function



Mime
View raw message