[BUG] Incorrect timeout setting for call_and_validate #1758
Labels
Component: CLI
Command line interface
Type: Breaking Change
Introduces changes incompatible with previous versions
Type: Bug
Errors or unexpected behavior
Milestone
Checklist
Describe the bug
Timeout is in second for
call_and_validate
function.To Reproduce
Steps to reproduce the behavior:
Use the function
response = case.call(verify=False, timeout=30000)
Expected behavior
Timeout supports to be millisecond but Schemathesis use it as second.
It use millisecond for the default setting, even convert to second back for the exception.
If we pass in millisecond, the timeout will be too long.
If we pass in second, the exception will print out incorrect value.
See :
schemathesis/src/schemathesis/models.py
Line 356 in f87079c
Environment (please complete the following information):
Additional context
We should convert it to second from millisecond like in this commit 3b5c699
The text was updated successfully, but these errors were encountered: