BidirectionalStreamTest: don't cancel and block in teardown
Calling callback.blockForDone() on a non-started stream's callback will block until it timeouts (12s). Currently, only a single test within BidirectionalStreamTest actually starts the stream. This means that every other tests is calling callback.blockForDone() during teardown for no reason at all and they will just get stuck for 12s. Change-Id: Ia40cbc371b4e2450dcd92a3ad429ff4351931a21
This commit is contained in:
parent
92e1d5182d
commit
515807ff72
1 changed files with 0 additions and 5 deletions
|
|
@ -58,11 +58,6 @@ class BidirectionalStreamTest {
|
|||
@After
|
||||
@Throws(Exception::class)
|
||||
fun tearDown() {
|
||||
// cancel active requests to enable engine shutdown.
|
||||
stream?.let {
|
||||
it.cancel()
|
||||
callback.blockForDone()
|
||||
}
|
||||
httpEngine.shutdown()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue