Browse Source

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.
Ryan Ernst 8 years ago
parent
commit
c48b60dcf1
1 changed files with 8 additions and 0 deletions
  1. 8 0
      distribution/integ-test-zip/build.gradle

+ 8 - 0
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