Skip to content

Commit

Permalink
rollback statistics gathering in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Moiseenko <[email protected]>
  • Loading branch information
eupp committed Nov 21, 2023
1 parent a4f925c commit f6d693d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jvm/main/org/jetbrains/kotlinx/lincheck/LinChecker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class LinChecker(private val testClass: Class<*>, options: Options<*, *>?) {
if (customTracker != null)
addTracker(customTracker)
}
// val statisticsTracker = tracker.addTrackerIfAbsent { LincheckStatisticsTracker() }
val statisticsTracker = tracker.addTrackerIfAbsent { LincheckStatisticsTracker() }
scenarios.forEachIndexed { i, scenario ->
val isCustomScenario = (i < customScenarios.size)
// For performance reasons, verifier re-uses LTS from previous iterations.
Expand All @@ -86,7 +86,7 @@ class LinChecker(private val testClass: Class<*>, options: Options<*, *>?) {
scenario.validate()
reporter.logIteration(i + 1, scenariosSize, scenario)
var failure = scenario.run(i, this, verifier, tracker)
// reporter.logIterationStatistics(i, statisticsTracker)
reporter.logIterationStatistics(i, statisticsTracker)
if (failure == null)
return@forEachIndexed
if (minimizeFailedScenario && !isCustomScenario) {
Expand Down

0 comments on commit f6d693d

Please sign in to comment.