Skip to content

Commit

Permalink
Trigger thread dump before AsyncHttpClientSpec times out
Browse files Browse the repository at this point in the history
Mix new `ThreadDumpOnTimeout` into `AsyncHttpClientSpec` and print
thread dump to console 500ms before the spec times out.  Hoping to
better understand:
https://github.com/http4s/http4s/issues/858http4s/http4s#issuecomment-274133582
and also apply `ThreadDumpOnTimeout` to understand http4s/http4s#774.
  • Loading branch information
bfritz committed Jan 27, 2017
1 parent 0d27f50 commit bc5ff0c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package org.http4s.client.asynchttpclient

import org.http4s.client.ClientRouteTestBattery
import org.http4s.testing.ThreadDumpOnTimeout

class AsyncHttpClientSpec extends ClientRouteTestBattery("AsyncHttpClient", AsyncHttpClient())
import scala.concurrent.duration._

class AsyncHttpClientSpec extends ClientRouteTestBattery("AsyncHttpClient", AsyncHttpClient()) with ThreadDumpOnTimeout {
override val triggerThreadDumpAfter = timeout - 500.millis
}

0 comments on commit bc5ff0c

Please sign in to comment.