diff options
author | Joan Touzet <wohali@users.noreply.github.com> | 2018-12-19 13:34:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 13:34:13 -0500 |
commit | 11feb2f8c14c305c50ca095c396d1c04d33505a2 (patch) | |
tree | 3a732cb71bdb02dde46052f7901311c0773bbcb8 | |
parent | 92adefaa42c3a4b145e646a312c6692e0743f76a (diff) | |
download | couchdb-11feb2f8c14c305c50ca095c396d1c04d33505a2.tar.gz |
Increase timeout on restart in JS/elixir tests to 30s (#1820)
-rw-r--r-- | test/elixir/lib/couch/db_test.ex | 2 | ||||
-rw-r--r-- | 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 3bbfb7eaa..efd02f129 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 9e49cf15c..6140c0e3f 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')); } } } |