From c48b60dcf1c2b7ab113fd1e9895088016133244f Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 5 Apr 2017 12:11:03 -0700 Subject: [PATCH] Tests: Extend rest test timeout to 30 minutes for windows (#23912) Windows rest tests consistenly fail because the filesystem appears to be an order of magnitude slower than that of *nix, at least in the context of our rest tests. This commit overrides the suite timeout to 30 mins for windows. From past failures, it appears this should be enough, as the tests seem to fail when they are almost complete. The default suite timeout for ESTestCase is 20 mins, so this leaves ample buffer for windows shenanigans. --- distribution/integ-test-zip/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/distribution/integ-test-zip/build.gradle b/distribution/integ-test-zip/build.gradle index 80da4131995..a99768f7cf9 100644 --- a/distribution/integ-test-zip/build.gradle +++ b/distribution/integ-test-zip/build.gradle @@ -18,6 +18,7 @@ */ import org.elasticsearch.gradle.plugin.PluginBuildPlugin +import org.apache.tools.ant.taskdefs.condition.Os task buildZip(type: Zip) { dependsOn createPluginsDir @@ -61,4 +62,11 @@ publishing { } } +integTestRunner { + if (Os.isFamily(Os.FAMILY_WINDOWS) && System.getProperty('tests.timeoutSuite') == null) { + // override the suite timeout to 30 mins for windows, because it has the most inefficient filesystem known to man + systemProperty 'tests.timeoutSuite', '1800000!' + } +} + integTest.dependsOn buildZip