aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-10-18 11:42:10 -0700
committerGravatar Ken Payson <kpayson@google.com>2016-10-18 12:34:45 -0700
commit667301a25fc6ac47923e9c184754117ec1ff9a58 (patch)
tree5a003ba66041d309d41c7e38aed24bf98f6dec99 /src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
parentbb4c5f3d3fd5217c680bbdf3c429b73d7662bbab (diff)
Change channel tests to use public API
This allows for testing other implementations of grpc.Server.
Diffstat (limited to 'src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py')
-rw-r--r--src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py b/src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
index 60d478bcd9..e0a7d15aa7 100644
--- a/src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
+++ b/src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py
@@ -33,8 +33,6 @@ import threading
import unittest
import grpc
-from grpc import _channel
-from grpc import _server
from tests.unit.framework.common import test_constants
from tests.unit import _thread_pool
@@ -79,7 +77,7 @@ class ChannelReadyFutureTest(unittest.TestCase):
def test_immediately_connectable_channel_connectivity(self):
thread_pool = _thread_pool.RecordingThreadPool(max_workers=None)
- server = _server.Server(thread_pool, (), ())
+ server = grpc.server(thread_pool)
port = server.add_insecure_port('[::]:0')
server.start()
channel = grpc.insecure_channel('localhost:{}'.format(port))