Minor: style fixes after review
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user