Skip to content

Commit

Permalink
fix minor review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Moiseenko <[email protected]>
  • Loading branch information
eupp committed Feb 27, 2024
1 parent bc30e38 commit 8553cb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/jvm/main/org/jetbrains/kotlinx/lincheck/LinChecker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ class LinChecker(private val testClass: Class<*>, options: Options<*, *>?) {
check(testConfigurations.isNotEmpty()) { "No Lincheck test configuration to run" }
for (testCfg in testConfigurations) {
val failure = testCfg.checkImpl()
if (failure != null)
return failure
if (failure != null) return failure
}
return null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ class StressCTestConfiguration(
timeoutMs = timeoutMs,
customScenarios = customScenarios
) {
override fun createStrategy(
testClass: Class<*>,
scenario: ExecutionScenario,
validationFunction: Actor?,
stateRepresentationMethod: Method?
) = StressStrategy(this, testClass, scenario, validationFunction, stateRepresentationMethod)
override fun createStrategy(testClass: Class<*>, scenario: ExecutionScenario, validationFunction: Actor?,
stateRepresentationMethod: Method?) =
StressStrategy(this, testClass, scenario, validationFunction, stateRepresentationMethod)

companion object {
const val DEFAULT_INVOCATIONS = 10000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ class StressStrategy(
}
}

override fun runInvocation(): InvocationResult {
return runner.run()
}
override fun runInvocation(): InvocationResult = runner.run()

override fun close() {
runner.close()
Expand Down

0 comments on commit 8553cb5

Please sign in to comment.