summaryrefslogtreecommitdiff
path: root/test/couch_config_test.erl
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-08-30 20:50:03 +0000
committerJan Lehnardt <jan@apache.org>2008-08-30 20:50:03 +0000
commit85221b542f438dc85faad7a6afcddd67d5984e6e (patch)
tree1134b07cba4b3c33627b83299649f2d330770894 /test/couch_config_test.erl
parentb1d05573d71483f22d6c32125c04407eaefdffcf (diff)
- Remove dependency on test/local.ini
- Write out new variables in key = value format - Fix tests git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690584 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/couch_config_test.erl')
-rw-r--r--test/couch_config_test.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/couch_config_test.erl b/test/couch_config_test.erl
index 604a35d2..7db45bd7 100644
--- a/test/couch_config_test.erl
+++ b/test/couch_config_test.erl
@@ -30,6 +30,9 @@ store_tuple_key() ->
store(Key2, Value2) ->
+ Filename = "local.ini",
+ file:write_file(Filename, ""),
+
Key = binary_to_list(term_to_binary(Key2)),
Value = binary_to_list(term_to_binary(Value2)),
@@ -40,4 +43,8 @@ store(Key2, Value2) ->
couch_config:unset(Key),
couch_config:terminate(end_of_test, ok),
+
+ % clean up
+ file:delete(Filename),
+
Value = Result. \ No newline at end of file