|
|
|
@ -11,7 +11,7 @@ import ( |
|
|
|
"tailscale.com/tstest" |
|
|
|
"tailscale.com/tstest" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func maybeSkip(t *testing.T) { |
|
|
|
func maybeSkip(t testing.TB) { |
|
|
|
if runtime.GOOS == "linux" { |
|
|
|
if runtime.GOOS == "linux" { |
|
|
|
tstest.SkipOnKernelVersions(t, |
|
|
|
tstest.SkipOnKernelVersions(t, |
|
|
|
"https://github.com/tailscale/tailscale/issues/16966", |
|
|
|
"https://github.com/tailscale/tailscale/issues/16966", |
|
|
|
@ -214,6 +214,7 @@ func BenchmarkGetListIncremental(b *testing.B) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func benchmarkGetList(b *testing.B, incremental bool) { |
|
|
|
func benchmarkGetList(b *testing.B, incremental bool) { |
|
|
|
|
|
|
|
maybeSkip(b) |
|
|
|
b.ReportAllocs() |
|
|
|
b.ReportAllocs() |
|
|
|
var p Poller |
|
|
|
var p Poller |
|
|
|
p.init() |
|
|
|
p.init() |
|
|
|
|