Skip to content

Commit

Permalink
Fix tests for internal runs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnossen committed Apr 11, 2019
1 parent f900eec commit 392ffea
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/python/grpcio_tests/tests/unit/_compression_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
# limitations under the License.
"""Tests server and client side compression."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import unittest

import contextlib
Expand All @@ -39,17 +35,17 @@
_STREAM_STREAM = '/test/StreamStream'

# Cut down on test time.
_STREAM_LENGTH = test_constants.STREAM_LENGTH // 8
_STREAM_LENGTH = test_constants.STREAM_LENGTH // 16

_HOST = 'localhost'

_REQUEST = b'\x00' * 100
_COMPRESSION_RATIO_THRESHOLD = 0.1
_COMPRESSION_RATIO_THRESHOLD = 0.05
_COMPRESSION_METHODS = (
None,
# Disabled for test tractability.
# grpc.Compression.NoCompression,
grpc.Compression.Deflate,
# grpc.Compression.Deflate,
grpc.Compression.Gzip,
)
_COMPRESSION_NAMES = {
Expand Down

0 comments on commit 392ffea

Please sign in to comment.