Skip to content

Commit

Permalink
terminate after expecation await
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Chiu <[email protected]>
  • Loading branch information
Alan Chiu committed Apr 29, 2021
1 parent 6d49c28 commit fff728f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/kotlin/integration/CancelStreamTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ class CancelStreamTest {
.sendHeaders(requestHeaders, false)
.cancel()

engine.terminate()
filterExpectation.await(10, TimeUnit.SECONDS)
runExpectation.await(10, TimeUnit.SECONDS)

engine.terminate()

assertThat(filterExpectation.count).isEqualTo(0)
assertThat(runExpectation.count).isEqualTo(0)
}
Expand Down

0 comments on commit fff728f

Please sign in to comment.