Replace assert with lazy assert, times with repeat.
Original commit: 3106458cc4
This commit is contained in:
@@ -158,7 +158,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
|
|||||||
|
|
||||||
val lookupTracker =
|
val lookupTracker =
|
||||||
project.container.getChild(LOOKUP_TRACKER)?.let {
|
project.container.getChild(LOOKUP_TRACKER)?.let {
|
||||||
assert("true".equals(System.getProperty("kotlin.jps.tests"), ignoreCase = true), "LOOKUP_TRACKER allowed only for jps tests")
|
assert("true".equals(System.getProperty("kotlin.jps.tests"), ignoreCase = true)) { "LOOKUP_TRACKER allowed only for jps tests" }
|
||||||
it.data
|
it.data
|
||||||
} ?: LookupTracker.DO_NOTHING
|
} ?: LookupTracker.DO_NOTHING
|
||||||
|
|
||||||
|
|||||||
@@ -549,7 +549,7 @@ public class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
|||||||
val result = HashSet<String>()
|
val result = HashSet<String>()
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
val relativePath = FileUtil.getRelativePath(baseDir, file)
|
val relativePath = FileUtil.getRelativePath(baseDir, file)
|
||||||
assert(relativePath != null, "relativePath should not be null")
|
assert(relativePath != null) { "relativePath should not be null" }
|
||||||
result.add(toSystemIndependentName(relativePath!!))
|
result.add(toSystemIndependentName(relativePath!!))
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
@@ -581,7 +581,7 @@ public class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
|
|||||||
|
|
||||||
assertCanceled(buildResult)
|
assertCanceled(buildResult)
|
||||||
buildResult.assertSuccessful()
|
buildResult.assertSuccessful()
|
||||||
assert(interval < 8000, "expected time for canceled compilation < 8000 ms, but $interval")
|
assert(interval < 8000) { "expected time for canceled compilation < 8000 ms, but $interval" }
|
||||||
|
|
||||||
val module = myProject.getModules().get(0)
|
val module = myProject.getModules().get(0)
|
||||||
assertFilesNotExistInOutput(module, "foo/Foo.class")
|
assertFilesNotExistInOutput(module, "foo/Foo.class")
|
||||||
|
|||||||
Reference in New Issue
Block a user