Skip to content

Commit bf6792f

Browse files
committed
Try making the specified_timeout a float
1 parent cfbc10c commit bf6792f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/gapic/test_method.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ 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
180+
specified_timeout = 22.0
181181
result = wrapped_method(
182182
retry=retry.Retry(retry.if_exception_type(exceptions.NotFound)),
183183
timeout=timeout.ConstantTimeout(specified_timeout),
@@ -201,7 +201,7 @@ def test_wrap_method_with_overriding_timeout_as_a_number():
201201
method, default_retry, default_timeout
202202
)
203203

204-
specified_timeout = 22
204+
specified_timeout = 22.0
205205
result = wrapped_method(timeout=specified_timeout)
206206

207207
assert result == 42

0 commit comments

Comments
 (0)