• Dave Cheney's avatar
    log/syslog: fix flakey test on slow hosts · ae12e963
    Dave Cheney authored
    Fixes #4467.
    
    The syslog tests can fail if the timeout fires before the data arrives at the mock server. Moving the timeout onto the goroutine that is calling ReadFrom() and always processing the data returned before handling the error should improve the reliability of the test.
    
    R=golang-dev, bradfitz
    CC=golang-dev
    https://golang.org/cl/6920047
    ae12e963
syslog_test.go 3.65 KB