Skip to content

Commit

Permalink
docs: add note about directExecutor in example tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed May 6, 2019
1 parent d50c8d4 commit 08bed14
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
* For demonstrating how to write gRPC unit test only.
* Not intended to provide a high code coverage or to test every major usecase.
*
* Note we use directExecutor() here to speed up the test
* but this requires the application to not block under any circumstances.
* Particilarly in bidirectional streaming it's better to use the default executor!
*
* <p>For more unit test examples see {@link io.grpc.examples.routeguide.RouteGuideClientTest} and
* {@link io.grpc.examples.routeguide.RouteGuideServerTest}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
* For demonstrating how to write gRPC unit test only.
* Not intended to provide a high code coverage or to test every major usecase.
*
* Note we use directExecutor() here to speed up the test
* but this requires the application to not block under any circumstances.
* Particilarly in bidirectional streaming it's better to use the default executor!
*
* <p>For more unit test examples see {@link io.grpc.examples.routeguide.RouteGuideClientTest} and
* {@link io.grpc.examples.routeguide.RouteGuideServerTest}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
* For demonstrating how to write gRPC unit test only.
* Not intended to provide a high code coverage or to test every major usecase.
*
* Note we use directExecutor() here to speed up the test
* but this requires the application to not block under any circumstances.
* Particilarly in bidirectional streaming it's better to use the default executor!
*
* <p>For basic unit test examples see {@link io.grpc.examples.helloworld.HelloWorldClientTest} and
* {@link io.grpc.examples.helloworld.HelloWorldServerTest}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
* For demonstrating how to write gRPC unit test only.
* Not intended to provide a high code coverage or to test every major usecase.
*
* Note we use directExecutor() here to speed up the test
* but this requires the application to not block under any circumstances.
* Particilarly in bidirectional streaming it's better to use the default executor!
*
* <p>For basic unit test examples see {@link io.grpc.examples.helloworld.HelloWorldClientTest} and
* {@link io.grpc.examples.helloworld.HelloWorldServerTest}.
*/
Expand Down

0 comments on commit 08bed14

Please sign in to comment.