mirror of
https://github.com/golang/go
synced 2024-11-05 16:26:11 -07:00
runtime/debug: mark TestSetGCPercent as flaky
Updates #20076 Change-Id: I4eb98abbb49174cc6433e5da2c3660893ef88fd1 Reviewed-on: https://go-review.googlesource.com/41615 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
22f1b56dab
commit
6a48019ea5
@ -5,6 +5,7 @@
|
|||||||
package debug_test
|
package debug_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"internal/testenv"
|
||||||
"runtime"
|
"runtime"
|
||||||
. "runtime/debug"
|
. "runtime/debug"
|
||||||
"testing"
|
"testing"
|
||||||
@ -110,6 +111,8 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestSetGCPercent(t *testing.T) {
|
func TestSetGCPercent(t *testing.T) {
|
||||||
|
testenv.SkipFlaky(t, 20076)
|
||||||
|
|
||||||
// Test that the variable is being set and returned correctly.
|
// Test that the variable is being set and returned correctly.
|
||||||
old := SetGCPercent(123)
|
old := SetGCPercent(123)
|
||||||
new := SetGCPercent(old)
|
new := SetGCPercent(old)
|
||||||
|
Loading…
Reference in New Issue
Block a user