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 30f9028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test_runner/src/main/kotlin/ftl/config/FtlConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ object FtlConstants {

val macOS: Boolean by lazy {
val osName = System.getProperty("os.name") ?: ""
val isMac = osName.toLowerCase().indexOf("mac") >= 0
println("isMacOS = $isMac ($osName)")
isMac
val isMacOS = osName.toLowerCase().indexOf("mac") >= 0
println("isMacOS = $isMacOS ($osName)")
isMacOS
}
const val localhost = "http://localhost:8080"

Expand Down
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 30f9028

Please sign in to comment.