]> Cypherpunks repositories - gostls13.git/commit
runtime: move TestReadMetricsSched to testprog
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 26 Sep 2025 17:05:43 +0000 (17:05 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 26 Sep 2025 17:55:30 +0000 (10:55 -0700)
commit16ae11a9e1ca064718303f11d30110cf4e4dbbbc
tree31ed4799ae15bdb3c56c7df677a983b0f65b8303
parent459f3a3adc131d9bb829efe0add27327a29b9c88
runtime: move TestReadMetricsSched to testprog

There are just too many flakes resulting from background pollution by
the testing package and other tests. Run in a subprocess where at least
the environment can be more tightly controlled.

Fixes #75049.

Change-Id: Iad59edaaf31268f1fcb77273f01317d963708fa6
Reviewed-on: https://go-review.googlesource.com/c/go/+/707155
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/metrics_test.go
src/runtime/testdata/testprog/pipe_unix.go [moved from src/runtime/pipe_unix_test.go with 93% similarity]
src/runtime/testdata/testprog/pipe_windows.go [moved from src/runtime/pipe_windows_test.go with 93% similarity]
src/runtime/testdata/testprog/schedmetrics.go [new file with mode: 0644]