summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-09-13 11:14:59 +0000
committerJan Lehnardt <jan@apache.org>2009-09-13 11:14:59 +0000
commitc1f2441020fcba500821981013144aff1fd8f8b9 (patch)
treebcd5c2827fa55d91aa22807b02d78f9636f81956 /test
parent8a05205d2c2256b58335d70a5700ff2590481e31 (diff)
allow config callbacks to get passed the X-Couch-Persist flag
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/etap/082-config-register.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/etap/082-config-register.t b/test/etap/082-config-register.t
index a35d96aa..416c45ee 100755
--- a/test/etap/082-config-register.t
+++ b/test/etap/082-config-register.t
@@ -84,4 +84,11 @@ test() ->
"Implicitly test that the function got de-registered"
),
+ % test passing of Persist flag
+ couch_config:register(
+ fun("httpd", _, _, Persist) ->
+ etap:is(Persist, false)
+ end),
+ ok = couch_config:set("httpd", "port", "80", false),
+
ok.