Skip to content

Commit ba321b9

Browse files
committed
Revert "add compression to receive test"
This reverts commit e62ce78.
1 parent 1806f53 commit ba321b9

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

samples/snippets/main.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

samples/snippets/sponge_log.xml -v

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/snippets/sponge_log.xml -v -s

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/snippets/subscriber_test.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@
6262
def publisher_client() -> Generator[pubsub_v1.PublisherClient, None, None]:
6363
yield pubsub_v1.PublisherClient()
6464

65-
@pytest.fixture(scope="module")
66-
def publisher_client_with_default_compression() -> Generator[pubsub_v1.PublisherClient, None, None]:
67-
yield pubsub_v1.PublisherClient(publisher_options=pubsub_v1.types.PublisherOptions(enable_grpc_compression=True))
68-
69-
@pytest.fixture(scope="module")
70-
def publisher_client_with_low_compression() -> Generator[pubsub_v1.PublisherClient, None, None]:
71-
yield pubsub_v1.PublisherClient(publisher_options=pubsub_v1.types.PublisherOptions(enable_grpc_compression=True, compression_bytes_threshold=0))
7265

7366
@pytest.fixture(scope="module")
7467
def regional_publisher_client() -> Generator[pubsub_v1.PublisherClient, None, None]:
@@ -798,36 +791,6 @@ def eventually_consistent_test() -> None:
798791
eventually_consistent_test()
799792

800793

801-
def test_listen_for_errors_default_compression(
802-
publisher_client_with_default_compression: pubsub_v1.PublisherClient,
803-
topic: str,
804-
subscription_async: str,
805-
capsys: CaptureFixture[str],
806-
) -> None:
807-
_ = _publish_messages(publisher_client_with_default_compression, topic)
808-
809-
subscriber.listen_for_errors(PROJECT_ID, SUBSCRIPTION_ASYNC, 5)
810-
811-
out, _ = capsys.readouterr()
812-
assert subscription_async in out
813-
assert "threw an exception" in out
814-
815-
816-
def test_listen_for_errors_low_compression(
817-
publisher_client_with_low_compression: pubsub_v1.PublisherClient,
818-
topic: str,
819-
subscription_async: str,
820-
capsys: CaptureFixture[str],
821-
) -> None:
822-
_ = _publish_messages(publisher_client_with_low_compression, topic)
823-
824-
subscriber.listen_for_errors(PROJECT_ID, SUBSCRIPTION_ASYNC, 5)
825-
826-
out, _ = capsys.readouterr()
827-
assert subscription_async in out
828-
assert "threw an exception" in out
829-
830-
831794
def test_receive_synchronously(
832795
publisher_client: pubsub_v1.PublisherClient,
833796
topic: str,

0 commit comments

Comments
 (0)