• Dmitry Vyukov's avatar
    runtime/race: deflake test · aeecee8c
    Dmitry Vyukov authored
    The test sometimes fails on builders.
    The test uses sleeps to establish the necessary goroutine
    execution order. If sleeps undersleep/oversleep
    the race is still reported, but it can be reported when the
    main test goroutine returns. In such case test driver
    can't match the race with the test and reports failure.
    
    Wait for both test goroutines to ensure that the race
    is reported in the test scope.
    
    Fixes #15579
    
    Change-Id: I0b9bec0ebfb0c127d83eb5325a7fe19ef9545050
    Reviewed-on: https://go-review.googlesource.com/22951
    Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    aeecee8c
Name
Last commit
Last update
..
atomic_test.go Loading commit data...
cgo_test.go Loading commit data...
cgo_test_main.go Loading commit data...
chan_test.go Loading commit data...
comp_test.go Loading commit data...
finalizer_test.go Loading commit data...
io_test.go Loading commit data...
issue12225_test.go Loading commit data...
issue12664_test.go Loading commit data...
issue13264_test.go Loading commit data...
map_test.go Loading commit data...
mop_test.go Loading commit data...
mutex_test.go Loading commit data...
regression_test.go Loading commit data...
rwmutex_test.go Loading commit data...
select_test.go Loading commit data...
slice_test.go Loading commit data...
sync_test.go Loading commit data...
waitgroup_test.go Loading commit data...