Skip to content

Commit

Permalink
Add debug output for flaky test analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Jan 26, 2017
1 parent 75c8b05 commit 54c8a2c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ abstract class ToolingApiSpecification extends Specification {
println "Retrying ToolingAPI test because there is a idle daemon that does not seem accept requests. Check log of daemon with PID " + daemon.context.pid
return retryWithCleanProjectDir()
}
println "Analyzed daemon log (connection issue)"
println " Daemon Context: ${daemon.context}"
println " Daemon Log Size: ${daemon.log.size()}"
}
}

Expand All @@ -117,9 +120,7 @@ abstract class ToolingApiSpecification extends Specification {
println "Retrying ToolingAPI test because socket disappeared. Check log of daemon with PID " + daemon.context.pid
return retryWithCleanProjectDir()
}
}
for (def daemon : toolingApi.daemons.daemons) {
println "Did not find Socket exception in daemon log"
println "Analyzed daemon log (socket issue)"
println " Daemon Context: ${daemon.context}"
println " Daemon Log Size: ${daemon.log.size()}"
}
Expand Down

0 comments on commit 54c8a2c

Please sign in to comment.