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.
This commit is contained in:
parent
5b1fbe5e6c
commit
c48b60dcf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue