Home
last modified time | relevance | path

Searched refs:test_constants (Results 1 – 25 of 62) sorted by relevance

123

/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_metadata_flags_test.py29 from tests.unit.framework.common import test_constants
45 for _ in range(test_constants.STREAM_LENGTH):
118 timeout=test_constants.LONG_TIMEOUT,
129 timeout=test_constants.LONG_TIMEOUT,
140 timeout=test_constants.LONG_TIMEOUT,
142 ).result(timeout=test_constants.LONG_TIMEOUT)
151 timeout=test_constants.LONG_TIMEOUT,
163 iter([_REQUEST] * test_constants.STREAM_LENGTH),
164 timeout=test_constants.LONG_TIMEOUT,
174 iter([_REQUEST] * test_constants.STREAM_LENGTH),
[all …]
D_rpc_part_2_test.py38 from tests.unit.framework.common import test_constants
126 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
145 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
168 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
188 b"\x77\x58" for _ in range(test_constants.STREAM_LENGTH)
227 pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
229 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
236 ] * test_constants.THREAD_CONCURRENCY
237 response_futures = [None] * test_constants.THREAD_CONCURRENCY
240 for index in range(test_constants.THREAD_CONCURRENCY):
[all …]
D_rpc_test_helpers.py24 from tests.unit.framework.common import test_constants
94 for _ in range(test_constants.STREAM_LENGTH):
111 for _ in range(test_constants.STREAM_LENGTH):
364 for _ in range(test_constants.STREAM_LENGTH // 2):
371 b"\x67\x88" for _ in range(test_constants.STREAM_LENGTH)
381 for _ in range(test_constants.STREAM_LENGTH // 2):
386 b"\x67\x88" for _ in range(test_constants.STREAM_LENGTH)
396 for _ in range(test_constants.STREAM_LENGTH):
398 for _ in range(test_constants.STREAM_LENGTH):
430 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
[all …]
D_resource_exhausted_test.py25 from tests.unit.framework.common import test_constants
74 for _ in range(test_constants.STREAM_LENGTH):
135 self._server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
136 self._trigger = _TestTrigger(test_constants.THREAD_CONCURRENCY)
141 maximum_concurrent_rpcs=test_constants.THREAD_CONCURRENCY,
157 for _ in range(test_constants.THREAD_CONCURRENCY):
189 for _ in range(test_constants.THREAD_CONCURRENCY):
219 request = iter([_REQUEST] * test_constants.STREAM_LENGTH)
220 for _ in range(test_constants.THREAD_CONCURRENCY):
253 request = iter([_REQUEST] * test_constants.STREAM_LENGTH)
[all …]
D_empty_message_test.py21 from tests.unit.framework.common import test_constants
37 for _ in range(test_constants.STREAM_LENGTH):
111 [_RESPONSE] * test_constants.STREAM_LENGTH, list(response_iterator)
118 )(iter([_REQUEST] * test_constants.STREAM_LENGTH))
125 )(iter([_REQUEST] * test_constants.STREAM_LENGTH))
127 [_RESPONSE] * test_constants.STREAM_LENGTH, list(response_iterator)
D_server_wait_for_termination_test.py25 from tests.unit.framework.common import test_constants
53 termination_event.wait(timeout=test_constants.SHORT_TIMEOUT)
73 termination_event.wait(timeout=test_constants.SHORT_TIMEOUT)
85 test_constants.SHORT_TIMEOUT / 2,
91 termination_event.wait(timeout=test_constants.SHORT_TIMEOUT)
D_invalid_metadata_test.py21 from tests.unit.framework.common import test_constants
107 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
117 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
128 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
138 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
D_rpc_part_1_test.py38 from tests.unit.framework.common import test_constants
44 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
71 b"\x07\x18" for _ in range(test_constants.STREAM_LENGTH)
174 b"\x47\x58" for _ in range(test_constants.STREAM_LENGTH)
194 b"\x07\x18" for _ in range(test_constants.STREAM_LENGTH)
249 b"\x07\x18" for _ in range(test_constants.STREAM_LENGTH)
D_interceptor_test.py29 from tests.unit.framework.common import test_constants
101 for _ in range(test_constants.STREAM_LENGTH):
462 self._server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
504 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
519 self.assertEqual(len(responses), 3 * test_constants.STREAM_LENGTH)
533 self.assertEqual(len(responses), test_constants.STREAM_LENGTH)
762 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
794 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
829 b"\x07\x08" for _ in range(test_constants.STREAM_LENGTH)
860 _EXCEPTION_REQUEST for _ in range(test_constants.STREAM_LENGTH)
[all …]
D_exit_scenarios.py23 from tests.unit.framework.common import test_constants
69 for _ in range(test_constants.STREAM_LENGTH // 2):
79 for _ in range(test_constants.STREAM_LENGTH // 2):
89 for _ in range(test_constants.STREAM_LENGTH // 2):
240 iter([REQUEST] * test_constants.STREAM_LENGTH)
D_channel_ready_future_test.py23 from tests.unit.framework.common import test_constants
51 ready_future.result(timeout=test_constants.SHORT_TIMEOUT)
79 ready_future.result(timeout=test_constants.LONG_TIMEOUT)
D_metadata_code_details_test.py23 from tests.unit.framework.common import test_constants
107 for _ in range(test_constants.STREAM_LENGTH // 2):
147 for _ in range(test_constants.STREAM_LENGTH // 3):
318 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
343 iter([object()] * test_constants.STREAM_LENGTH),
449 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
485 iter([object()] * test_constants.STREAM_LENGTH),
576 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
605 iter([object()] * test_constants.STREAM_LENGTH),
697 iter([_SERIALIZED_REQUEST] * test_constants.STREAM_LENGTH),
[all …]
D_metadata_test.py24 from tests.unit.framework.common import test_constants
120 for _ in range(test_constants.STREAM_LENGTH):
238 iter([_REQUEST] * test_constants.STREAM_LENGTH),
257 iter([_REQUEST] * test_constants.STREAM_LENGTH),
D_channel_close_test.py25 from tests.unit.framework.common import test_constants
115 max_workers=test_constants.THREAD_CONCURRENCY
176 for _ in range(test_constants.THREAD_CONCURRENCY)
205 for _ in range(test_constants.THREAD_CONCURRENCY):
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/_cython/
D_cancel_many_calls_test.py23 from tests.unit.framework.common import test_constants
35 _SUCCESSFUL_CALLS = int(test_constants.RPC_CONCURRENCY * _SUCCESS_CALL_FRACTION)
36 _UNSUCCESSFUL_CALLS = test_constants.RPC_CONCURRENCY - _SUCCESSFUL_CALLS
64 if self._state.parked_handlers == test_constants.THREAD_CONCURRENCY:
103 for _ in range(test_constants.RPC_CONCURRENCY):
112 if test_constants.RPC_CONCURRENCY <= state.handled_rpcs:
150 test_constants.THREAD_CONCURRENCY
186 for index in range(test_constants.RPC_CONCURRENCY):
230 if state.parked_handlers < test_constants.THREAD_CONCURRENCY:
232 elif state.handled_rpcs < test_constants.RPC_CONCURRENCY:
/external/grpc-grpc/src/python/grpcio_tests/tests/health_check/
D_health_servicer_test.py30 from tests.unit.framework.common import test_constants
86 response = response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
107 response = response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
115 response = response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
123 response = response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
141 response = response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
150 response_queue.get(timeout=test_constants.SHORT_TIMEOUT)
172 timeout=test_constants.SHORT_TIMEOUT
175 timeout=test_constants.SHORT_TIMEOUT
188 timeout=test_constants.SHORT_TIMEOUT
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_beta_features_test.py26 from tests.unit.framework.common import test_constants
171 thread_pool_size=test_constants.POOL_SIZE
196 thread_pool_size=test_constants.POOL_SIZE
204 self._server.stop(test_constants.SHORT_TIMEOUT).wait()
211 _REQUEST, test_constants.LONG_TIMEOUT, protocol_options=call_options
232 _REQUEST, test_constants.LONG_TIMEOUT, protocol_options=call_options
255 test_constants.LONG_TIMEOUT,
284 test_constants.SHORT_TIMEOUT,
334 thread_pool_size=test_constants.POOL_SIZE
348 thread_pool_size=test_constants.POOL_SIZE
[all …]
D_not_found_test.py22 from tests.unit.framework.common import test_constants
43 test_constants.LONG_TIMEOUT,
53 "grupe", "mevvod", iter([b"def"]), test_constants.LONG_TIMEOUT
D_utilities_test.py24 from tests.unit.framework.common import test_constants
53 ready_future.result(timeout=test_constants.SHORT_TIMEOUT)
75 ready_future.result(timeout=test_constants.LONG_TIMEOUT)
/external/grpc-grpc/src/python/grpcio_tests/tests/protoc_plugin/
Dbeta_python_plugin_test.py33 from tests.unit.framework.common import test_constants
369 stub.UnaryCall(request, test_constants.LONG_TIMEOUT)
382 response = stub.UnaryCall(request, test_constants.LONG_TIMEOUT)
396 request, test_constants.LONG_TIMEOUT
411 request, test_constants.SHORT_TIMEOUT
437 request, test_constants.LONG_TIMEOUT
449 request, test_constants.LONG_TIMEOUT
468 request, test_constants.SHORT_TIMEOUT
481 request, test_constants.LONG_TIMEOUT
511 test_constants.LONG_TIMEOUT,
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests_aio/unit/
Dwait_for_ready_test.py29 from tests.unit.framework.common import test_constants
42 timeout=test_constants.LONG_TIMEOUT,
56 timeout=test_constants.LONG_TIMEOUT,
75 timeout=test_constants.LONG_TIMEOUT,
82 timeout=test_constants.LONG_TIMEOUT, wait_for_ready=wait_for_ready
Dconnectivity_test.py26 from tests.unit.framework.common import test_constants
58 test_constants.SHORT_TIMEOUT,
71 test_constants.SHORT_TIMEOUT,
86 test_constants.SHORT_TIMEOUT,
Dserver_test.py24 from tests.unit.framework.common import test_constants
118 await asyncio.sleep(test_constants.SHORT_TIMEOUT / 2)
423 await self._server.stop(test_constants.SHORT_TIMEOUT)
426 grace_period_length, test_constants.SHORT_TIMEOUT / 3
437 await self._server.stop(test_constants.SHORT_TIMEOUT)
452 self._server.stop(test_constants.LONG_TIMEOUT),
453 self._server.stop(test_constants.SHORT_TIMEOUT),
454 self._server.stop(test_constants.LONG_TIMEOUT),
458 grace_period_length, test_constants.SHORT_TIMEOUT / 3
470 self._server.stop(test_constants.LONG_TIMEOUT),
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_client_application.py27 from tests.unit.framework.common import test_constants
159 for _ in range(test_constants.THREAD_CONCURRENCY)
174 outcomes = [None] * test_constants.RPC_CONCURRENCY
182 for index in range(test_constants.RPC_CONCURRENCY):
/external/python/cpython3/Modules/_testlimitedcapi/
Dobject.c49 test_constants(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args)) in test_constants() function
68 {"test_constants", test_constants, METH_NOARGS},

123