ff26294d63
Some global variables are patched to shorter values in these tests. But the goroutines that read them can outlive the test because nothing waited for them to exit. This commit adds a Wait() method to the routine manager, so that tests can wait for the goroutines to exit. This prevents the data race because the 'reset to original value' can happen after all other goroutines have stopped. |
||
---|---|---|
.. | ||
decode | ||
file | ||
mutex | ||
retry | ||
routine | ||
semaphore | ||
serf | ||
stringslice | ||
template | ||
ttlcache | ||
cluster.go | ||
cluster_test.go | ||
eof.go | ||
eof_test.go | ||
json.go | ||
map_walker.go | ||
map_walker_test.go | ||
math.go | ||
math_test.go | ||
path.go | ||
rand.go | ||
rtt.go | ||
rtt_test.go | ||
stop_context.go | ||
stop_context_test.go | ||
telemetry.go | ||
telemetry_test.go | ||
testing_httpserver.go | ||
translate.go | ||
translate_test.go | ||
useragent.go | ||
useragent_test.go | ||
uuid.go |