-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e04d51
commit c909066
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# this test assumes it is being run in examples/python/helloworld, | ||
# after having generated the helloworld_pb2{,_grpc} modules (see meta.yaml) | ||
import grpc | ||
import helloworld_pb2 | ||
import helloworld_pb2_grpc | ||
|
||
# run this a couple times because it happens randomly, see | ||
# https://github.com/conda-forge/grpc-cpp-feedstock/issues/281 | ||
for _ in range(1000): | ||
with grpc.insecure_channel('localhost:50051') as channel: | ||
stub = helloworld_pb2_grpc.GreeterStub(channel) | ||
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you')) |