• Brad Fitzpatrick's avatar
    net/http: deflake TestServerCancelsReadTimeoutWhenIdle · 95fab851
    Brad Fitzpatrick authored
    I can reproduce with a very short timeout (fractions of a millisecond)
    combined with -race.
    
    But given that this is inherently sensitive to actual time, add a
    testing mechanism to retry with increasingly large times to compensate
    for busy buidlers. This also means the test is usually faster now,
    too, since we can start with smaller durations.
    
    Fixes #19608
    
    Change-Id: I3a222464720195849da768e9801eb7b43baa4aeb
    Reviewed-on: https://go-review.googlesource.com/82595
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    95fab851
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...