Minor: style fixes after review

This commit is contained in:
ligee
2015-08-11 17:22:50 +02:00
parent 961905a8da
commit 0c84648b6a
2 changed files with 3 additions and 2 deletions
@@ -27,7 +27,7 @@ abstract class BaseGradleIT {
deleteRecursively(workingDir)
}
internal class BuildOptions(val withDaemon: Boolean = false)
class BuildOptions(val withDaemon: Boolean = false)
class Project(val projectName: String, val wrapperVersion: String = "1.4", val minLogLevel: LogLevel = LogLevel.DEBUG)
@@ -50,7 +50,7 @@ class KotlinGradleIT: BaseGradleIT() {
assertSuccessful()
}
for (i in 1..3)
for (i in 1..3) {
project.build("build", options = BaseGradleIT.BuildOptions(withDaemon = true)) {
assertSuccessful()
val matches = "\\[PERF\\] Used memory after build: (\\d+) kb \\(([+-]?\\d+) kb\\)".toRegex().match(output)
@@ -58,6 +58,7 @@ class KotlinGradleIT: BaseGradleIT() {
val reportedGrowth = matches!!.groups.get(2)!!.value.toInt()
assert(reportedGrowth <= 500, "Used memory growth $reportedGrowth > 500")
}
}
project.stopDaemon {
assertSuccessful()