From 3bf0b724a3a9cc137a10279b8a4233779b8d31fb Mon Sep 17 00:00:00 2001 From: Edward Hennis Date: Wed, 15 Apr 2020 13:45:51 -0400 Subject: [PATCH] Adjust timeouts in Validator Site tests: * Prevents spurious failures due to DNS resolution. --- src/test/app/ValidatorSite_test.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/app/ValidatorSite_test.cpp b/src/test/app/ValidatorSite_test.cpp index 5aaa46511a..9ed0d994c9 100644 --- a/src/test/app/ValidatorSite_test.cpp +++ b/src/test/app/ValidatorSite_test.cpp @@ -202,7 +202,10 @@ private: trustedKeys.load(emptyLocalKey, emptyCfgKeys, cfgPublishers)); using namespace std::chrono_literals; - auto sites = std::make_unique(env.app(), journal, 2s); + // Normally, tests will only need a fraction of this time, + // but sometimes DNS resolution takes an inordinate amount + // of time, so the test will just wait. + auto sites = std::make_unique(env.app(), journal, 12s); std::vector uris; for (auto const& u : servers) @@ -453,7 +456,7 @@ public: true, true}}); // timeout - testFetchList({{"/sleep/3", "took too long", ssl, true, true}}); + testFetchList({{"/sleep/13", "took too long", ssl, true, true}}); // bad manifest version testFetchList( {{"/validators", "Unsupported version", ssl, false, true, 4}});