Fixing daemon memory test on windows by increasing the expected threshold

This commit is contained in:
Ilya Chernikov
2016-02-26 10:23:37 +03:00
parent 029b918ec9
commit c39cec4869
@@ -68,7 +68,7 @@ class KotlinGradleIT: BaseGradleIT() {
val matches = "\\[PERF\\] Used memory after build: (\\d+) kb \\(difference since build start: ([+-]?\\d+) kb\\)".toRegex().find(output)
assert(matches != null && matches.groups.size == 3) { "Used memory after build is not reported by plugin on attempt $i" }
val reportedGrowth = matches!!.groups.get(2)!!.value.removePrefix("+").toInt()
val expectedGrowthLimit = 2000
val expectedGrowthLimit = 2500
assert(reportedGrowth <= expectedGrowthLimit) { "Used memory growth $reportedGrowth > $expectedGrowthLimit" }
}
}