aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/grpc/src/python/grpcio_tests/tests/stress
diff options
context:
space:
mode:
authorheretic <heretic@yandex-team.ru>2022-03-25 12:34:53 +0300
committerheretic <heretic@yandex-team.ru>2022-03-25 12:34:53 +0300
commita41f3739eed6fceb6f62056a7620d220958a47e7 (patch)
tree278103258b510cb4a96761ea79d6ccd397ca05a0 /contrib/libs/grpc/src/python/grpcio_tests/tests/stress
parent73d3613a82e5c217fcbe0ab8bbf8120c1ed1af55 (diff)
downloadydb-a41f3739eed6fceb6f62056a7620d220958a47e7.tar.gz
Update grpc to 1.43.2 DTCC-864
ref:50a492c335cda70f458797cf945e49fe739c2715
Diffstat (limited to 'contrib/libs/grpc/src/python/grpcio_tests/tests/stress')
-rw-r--r--contrib/libs/grpc/src/python/grpcio_tests/tests/stress/client.py2
-rw-r--r--contrib/libs/grpc/src/python/grpcio_tests/tests/stress/unary_stream_benchmark.py12
2 files changed, 8 insertions, 6 deletions
diff --git a/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/client.py b/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/client.py
index 01c14ba3e2..4481e61696 100644
--- a/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/client.py
+++ b/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/client.py
@@ -19,9 +19,9 @@ import threading
import grpc
from six.moves import queue
+
from src.proto.grpc.testing import metrics_pb2_grpc
from src.proto.grpc.testing import test_pb2_grpc
-
from tests.interop import methods
from tests.interop import resources
from tests.qps import histogram
diff --git a/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/unary_stream_benchmark.py b/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/unary_stream_benchmark.py
index cd872ece29..21d7e6c608 100644
--- a/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/unary_stream_benchmark.py
+++ b/contrib/libs/grpc/src/python/grpcio_tests/tests/stress/unary_stream_benchmark.py
@@ -12,14 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import contextlib
import datetime
-import threading
-import grpc
-import grpc.experimental
import subprocess
import sys
+import threading
import time
-import contextlib
+
+import grpc
+import grpc.experimental
_PORT = 5741
_MESSAGE_SIZE = 4
@@ -49,8 +50,9 @@ server.wait_for_termination()
""" % _PORT
try:
+ from src.python.grpcio_tests.tests.stress import \
+ unary_stream_benchmark_pb2_grpc
from src.python.grpcio_tests.tests.stress import unary_stream_benchmark_pb2
- from src.python.grpcio_tests.tests.stress import unary_stream_benchmark_pb2_grpc
_GRPC_CHANNEL_OPTIONS = [
('grpc.max_metadata_size', 16 * 1024 * 1024),