Skip to content

Second session's timeout overwrites the first session's timeout #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MrBIN89 opened this issue Mar 4, 2025 · 1 comment
Open

Second session's timeout overwrites the first session's timeout #407

MrBIN89 opened this issue Mar 4, 2025 · 1 comment

Comments

@MrBIN89
Copy link

MrBIN89 commented Mar 4, 2025

It is expected behaviour that sessions have its own timeouts.
Though the last used timeout in Create Session keyword overwrites the timeout value for all previous sessions.
Please check test case below.

*** Settings ***
Library    RequestsLibrary

*** Test Cases ***
Test Case To Check Request Session Timeouts
    [Tags]    check_timeouts
    RequestsLibrary.Create Session    session_5    https://httpbin.org    timeout=5
    RequestsLibrary.Create Session    session_2    https://httpbin.org    timeout=2
    RequestsLibrary.GET On Session    session_5    /delay/3

Used versions:

Python 3.9.13
requests                    2.25.1
robotframework-requests     0.9.7
robotframework              7.1
@hpierre001
Copy link

After looking at the code, cookies must have the same issue, and i'm not sure the implementation has the wanted behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants