• Volker Dobler's avatar
    exp/cookiejar: make cookie sorting deterministic. · 6bbd12f1
    Volker Dobler authored
    Re-enable TestUpdateAndDelete, TestExpiration, TestChromiumDomain and
    TestChromiumDeletion on Windows.
    
    Sorting of cookies with same path length and same creation
    time is done by an additional seqNum field.
    This makes the order in which cookies are returned in Cookies
    deterministic, even if the system clock is manipulated or on
    systems with a low-resolution clock.
    
    The tests now use a synthetic time: This makes cookie testing
    reliable in case of bogus system clocks and speeds up the
    expiration tests.
    
    R=nigeltao, alex.brainman, dave
    CC=golang-dev
    https://golang.org/cl/7323063
    6bbd12f1
jar.go 12.9 KB