This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 11feb2f Increase timeout on restart in JS/elixir tests to 30s (#1820)
11feb2f is described below
commit 11feb2f8c14c305c50ca095c396d1c04d33505a2
Author: Joan Touzet <[email protected]>
AuthorDate: Wed Dec 19 13:34:13 2018 -0500
Increase timeout on restart in JS/elixir tests to 30s (#1820)
---
test/elixir/lib/couch/db_test.ex | 2 +-
test/javascript/test_setup.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/elixir/lib/couch/db_test.ex b/test/elixir/lib/couch/db_test.ex
index 3bbfb7e..efd02f1 100644
--- a/test/elixir/lib/couch/db_test.ex
+++ b/test/elixir/lib/couch/db_test.ex
@@ -273,7 +273,7 @@ defmodule Couch.DBTest do
# enough to inroduce a race here
retry_until(fn -> !node_is_running(port) end)
# wait utill node is back
- retry_until(fn -> node_is_running(port) end, 500, 10_000)
+ retry_until(fn -> node_is_running(port) end, 500, 30_000)
end
defp node_is_running(port) do
diff --git a/test/javascript/test_setup.js b/test/javascript/test_setup.js
index 9e49cf1..6140c0e 100644
--- a/test/javascript/test_setup.js
+++ b/test/javascript/test_setup.js
@@ -106,12 +106,12 @@ function restartServer() {
} catch (e) {}
var now = new Date().getTime();
- if (now > start + 15000) {
+ if (now > start + 30000) {
try {
uptime = getUptime();
throw(Error('FAILED to restart: ' + uptime + ' not < ' + olduptime));
} catch (e) {
- throw(Error('FAILED to restart: server is unresponsive, waited 15s'));
+ throw(Error('FAILED to restart: server is unresponsive, waited 30s'));
}
}
}