rnewson commented on code in PR #5762:
URL: https://github.com/apache/couchdb/pull/5762#discussion_r2564759829


##########
test/elixir/test/config_test.exs:
##########
@@ -182,6 +182,22 @@ defmodule ConfigTest do
     assert resp.status_code == 200
   end
 
+  test "Auto-reload config", context do
+    {:ok, fd} = File.open "dev/lib/node1/etc/local.ini", [:append]
+    IO.puts(fd, "[foo]\nbar = baz")
+    File.close fd
+    assert !Map.has_key?(get_config(context, "foo"), "bar")
+
+    # enable config auto-reload
+    set_config(context, "config", "auto_reload_secs", "1")
+    on_exit(fn ->
+      set_config(context, "config", "auto_reload_secs", "0")

Review Comment:
   changed to delete_config but had to disable the assert as it was getting a 
404 response which makes no sense...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to