mirror of
https://github.com/tailscale/tailscale.git
synced 2025-09-21 13:41:46 +02:00
utils/expvarx, tstest/integration: mark two tests as known flaky (#17052)
* utils/expvarx: mark TestSafeFuncHappyPath as known flaky Updates #15348 Signed-off-by: Alex Chan <alexc@tailscale.com> * tstest/integration: mark TestCollectPanic as known flaky Updates #15865 Signed-off-by: Alex Chan <alexc@tailscale.com> --------- Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
parent
ff8900583c
commit
14adf5b717
@ -170,6 +170,7 @@ func TestControlKnobs(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestCollectPanic(t *testing.T) {
|
func TestCollectPanic(t *testing.T) {
|
||||||
|
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15865")
|
||||||
tstest.Shard(t)
|
tstest.Shard(t)
|
||||||
tstest.Parallel(t)
|
tstest.Parallel(t)
|
||||||
env := NewTestEnv(t)
|
env := NewTestEnv(t)
|
||||||
|
@ -10,6 +10,8 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"tailscale.com/cmd/testwrapper/flakytest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewSafeFunc() {
|
func ExampleNewSafeFunc() {
|
||||||
@ -52,6 +54,7 @@ func ExampleNewSafeFunc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSafeFuncHappyPath(t *testing.T) {
|
func TestSafeFuncHappyPath(t *testing.T) {
|
||||||
|
flakytest.Mark(t, "https://github.com/tailscale/tailscale/issues/15348")
|
||||||
var count int
|
var count int
|
||||||
f := NewSafeFunc(expvar.Func(func() any {
|
f := NewSafeFunc(expvar.Func(func() any {
|
||||||
count++
|
count++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user