Skip to content

Commit

Permalink
Fix flank cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Apr 26, 2019
1 parent b9b2570 commit 47db114
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_runner/src/main/kotlin/ftl/run/TestRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ object TestRunner {
val resultsFile = Paths.get(args.localResultDir).toFile()
if (!resultsFile.exists()) return null

val scheduledRuns = resultsFile.listFiles().filter { it.isDirectory }.sortedBy { it.lastModified() }
val scheduledRuns = resultsFile.listFiles()
.filter { it.isDirectory }
.sortedByDescending { it.lastModified() }
if (scheduledRuns.isEmpty()) return null

return scheduledRuns.first().name
Expand Down

0 comments on commit 47db114

Please sign in to comment.