Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 4b7b4c9

Browse files
committed
Remove duplicate unavailable_status that had been already committed into main
1 parent e8ea4d9 commit 4b7b4c9

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/mockserver_tests/mock_server_test_base.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,6 @@ def unavailable_status() -> _Status:
7979
return status
8080

8181

82-
# Creates an UNAVAILABLE status with the smallest possible retry delay.
83-
def unavailable_status() -> _Status:
84-
error = status_pb2.Status(
85-
code=code_pb2.UNAVAILABLE,
86-
message="Service unavailable.",
87-
)
88-
retry_info = RetryInfo(retry_delay=Duration(seconds=0, nanos=1))
89-
status = _Status(
90-
code=code_to_grpc_status_code(error.code),
91-
details=error.message,
92-
trailing_metadata=(
93-
("grpc-status-details-bin", error.SerializeToString()),
94-
(
95-
"google.rpc.retryinfo-bin",
96-
retry_info.SerializeToString(),
97-
),
98-
),
99-
)
100-
return status
101-
102-
10382
def add_error(method: str, error: status_pb2.Status):
10483
MockServerTestBase.spanner_service.mock_spanner.add_error(method, error)
10584

0 commit comments

Comments
 (0)