From d93677ad7e40d66c2ec5c5e75c984533db00b5ee Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Thu, 16 Dec 2021 10:22:37 -0500 Subject: [PATCH] net/http/pprof: skip TestDeltaProfile on openbsd/arm It is observed to be flaky on the only openbsd/arm builder. Skipping on that platform until someone can investigate. For #50218 Change-Id: Id3a6dc12b93b3cec67870d8d81bd608c4589c952 Reviewed-on: https://go-review.googlesource.com/c/go/+/372794 Trust: Bryan Mills Run-TryBot: Bryan Mills Reviewed-by: Hyang-Ah Hana Kim TryBot-Result: Gopher Robot --- src/net/http/pprof/pprof_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/http/pprof/pprof_test.go b/src/net/http/pprof/pprof_test.go index 84757e401a..1a4d653a62 100644 --- a/src/net/http/pprof/pprof_test.go +++ b/src/net/http/pprof/pprof_test.go @@ -8,6 +8,7 @@ import ( "bytes" "fmt" "internal/profile" + "internal/testenv" "io" "net/http" "net/http/httptest" @@ -152,6 +153,10 @@ func mutexHog(duration time.Duration, hogger func(mu1, mu2 *sync.Mutex, start ti } func TestDeltaProfile(t *testing.T) { + if runtime.GOOS == "openbsd" && runtime.GOARCH == "arm" { + testenv.SkipFlaky(t, 50218) + } + rate := runtime.SetMutexProfileFraction(1) defer func() { runtime.SetMutexProfileFraction(rate) -- 2.50.0