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

Commit 5833182

Browse files
committed
Remove more potential test failures/warnings
Removed @pytest.mark.asyncio Defined literl timeouts as a specifie_timeout local variable
1 parent 0e27513 commit 5833182

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/unit/gapic/test_method.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,19 @@ def test_wrap_method_with_overriding_retry_timeout_compression(unused_sleep):
177177
method, default_retry, default_timeout, default_compression
178178
)
179179

180+
specified_timeout = 22
180181
result = wrapped_method(
181182
retry=retry.Retry(retry.if_exception_type(exceptions.NotFound)),
182-
timeout=timeout.ConstantTimeout(22),
183+
timeout=timeout.ConstantTimeout(specified_timeout),
183184
compression=grpc.Compression.Deflate,
184185
)
185186

186187
assert result == 42
187188
assert method.call_count == 2
188189
method.assert_called_with(
189-
timeout=22, compression=grpc.Compression.Deflate, metadata=mock.ANY
190+
timeout=specified_timeout,
191+
compression=grpc.Compression.Deflate,
192+
metadata=mock.ANY
190193
)
191194

192195

0 commit comments

Comments
 (0)