Clarify output of Hystrix test

This commit is contained in:
Nikolay Martynov 2018-10-24 15:13:21 -04:00
parent 601993fcb4
commit faad1d92b0
1 changed files with 10 additions and 10 deletions

View File

@ -78,7 +78,7 @@ class HystrixTest extends AgentTestRunner {
"execute" | { HystrixCommand cmd -> cmd.execute() }
"queue" | { HystrixCommand cmd -> cmd.queue().get() }
"observe" | { HystrixCommand cmd -> cmd.observe().toBlocking().first() }
"observe" | { HystrixCommand cmd ->
"observe block" | { HystrixCommand cmd ->
BlockingQueue queue = new LinkedBlockingQueue()
cmd.observe().subscribe { next ->
queue.put(next)
@ -151,7 +151,7 @@ class HystrixTest extends AgentTestRunner {
"execute" | { HystrixCommand cmd -> cmd.execute() }
"queue" | { HystrixCommand cmd -> cmd.queue().get() }
"observe" | { HystrixCommand cmd -> cmd.observe().toBlocking().first() }
"observe" | { HystrixCommand cmd ->
"observe block" | { HystrixCommand cmd ->
BlockingQueue queue = new LinkedBlockingQueue()
cmd.observe().subscribe { next ->
queue.put(next)