[Webkit-unassigned] [Bug 204114] New: WebDriver: fix handling of session timeouts for values higher than MAX_INT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 12 07:12:05 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204114

            Bug ID: 204114
           Summary: WebDriver: fix handling of session timeouts for values
                    higher than MAX_INT
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bburg at apple.com, bugs-noreply at webkitgtk.org

Timeout values can be between 0 and the maximum size integer (2^53 - 1) which is higher than INT_MAX. There are several tests failing because of this:

imported/w3c/webdriver/tests/set_timeouts/set.py::test_positive_integer[9007199254740991-implicit]
imported/w3c/webdriver/tests/set_timeouts/set.py::test_positive_integer[9007199254740991-pageLoad]
imported/w3c/webdriver/tests/set_timeouts/set.py::test_positive_integer[9007199254740991-script]

>       assert session.timeouts._get(typ) == value
E       AssertionError: assert 2147483647 == 9007199254740991

We should just use double everywhere and avoid the seconds to milliseconds conversions too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191112/38a96fba/attachment.htm>


More information about the webkit-unassigned mailing list