Deprecated with ERROR preconditions with eager message.

This commit is contained in:
Ilya Gorbunov
2015-11-07 16:25:36 +03:00
parent 07c570f35d
commit 3639afafce
11 changed files with 40 additions and 62 deletions
@@ -65,9 +65,9 @@ class KotlinGradleIT: BaseGradleIT() {
project.build(userVariantArg, "build", options = BaseGradleIT.BuildOptions(withDaemon = true)) {
assertSuccessful()
val matches = "\\[PERF\\] Used memory after build: (\\d+) kb \\(([+-]?\\d+) kb\\)".toRegex().find(output)
assert(matches != null && matches.groups.size() == 3, "Used memory after build is not reported by plugin")
assert(matches != null && matches.groups.size() == 3) { "Used memory after build is not reported by plugin" }
val reportedGrowth = matches!!.groups.get(2)!!.value.removePrefix("+").toInt()
assert(reportedGrowth <= 700, "Used memory growth $reportedGrowth > 700")
assert(reportedGrowth <= 700) { "Used memory growth $reportedGrowth > 700" }
}
}