]> Cypherpunks repositories - gostls13.git/commit
runtime: don't overwrite global stop channel in tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 15 Aug 2025 21:08:50 +0000 (21:08 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 15 Aug 2025 21:45:43 +0000 (14:45 -0700)
commit786be1d2bff0192288dfc2832e5012ad6b0816be
treea5ab2e798d5912015366a29f163a6397bfb044cc
parent4a7fde922ff12dce9d4e00f1b1e658fa907e488d
runtime: don't overwrite global stop channel in tests

This is used by TestStopTheWorldDeadlock, and the new
TestReadMetricsSched test accidentally modifies this global variable
instead of (as intended) defining a local one.

Change-Id: I7aaece83f285d051ad8b56b7591c76613c39613a
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/696556
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Bypass: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics_test.go