mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-23 03:37:19 +09:00
portlist: also tb.Skip benchmarks (not just tests) on bad Linux kernels
Updates #16966 Change-Id: I0269927bdf8e6c4e949fcf755ce7e5fd21386d7d Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
1 parent
36d359e585
commit
068074c109
1 file changed
+2
-1
@@ -11,7 +11,7 @@ import (
|
||||
"tailscale.com/tstest"
|
||||
)
|
||||
|
||||
func maybeSkip(t *testing.T) {
|
||||
func maybeSkip(t testing.TB) {
|
||||
if runtime.GOOS == "linux" {
|
||||
tstest.SkipOnKernelVersions(t,
|
||||
"https://github.com/tailscale/tailscale/issues/16966",
|
||||
@@ -214,6 +214,7 @@ func BenchmarkGetListIncremental(b *testing.B) {
|
||||
}
|
||||
|
||||
func benchmarkGetList(b *testing.B, incremental bool) {
|
||||
maybeSkip(b)
|
||||
b.ReportAllocs()
|
||||
var p Poller
|
||||
p.init()
|
||||
|
||||
Reference in new issue
Block a user