Skip to content

Commit d727f14

Browse files
committed
Try to remove a round-off error causing a test mock failure
1 parent 0a3434e commit d727f14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/gapic/test_method.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ def test_wrap_method_with_overriding_timeout_as_a_number():
198198
method, default_retry, default_timeout
199199
)
200200

201-
result = wrapped_method(timeout=22)
201+
timeout = 22
202+
result = wrapped_method(timeout=timeout)
202203

203204
assert result == 42
204-
method.assert_called_once_with(timeout=22, metadata=mock.ANY)
205+
method.assert_called_once_with(timeout=timeout, metadata=mock.ANY)
205206

206207

207208
def test_wrap_method_with_call():

0 commit comments

Comments
 (0)