diff --git a/pkg/tcpip/transport/tcp/test/e2e/BUILD b/pkg/tcpip/transport/tcp/test/e2e/BUILD index 5355d6fae..71f1fc14d 100644 --- a/pkg/tcpip/transport/tcp/test/e2e/BUILD +++ b/pkg/tcpip/transport/tcp/test/e2e/BUILD @@ -164,6 +164,9 @@ go_test( name = "tcp_noracedetector_test", size = "small", srcs = ["tcp_noracedetector_test.go"], + # These tests can be extremely slow/flaky when run under gotsan, + # so exclude them from gotsan runs. + tags = ["nogotsan"], deps = [ ":e2e", "//pkg/refs", diff --git a/pkg/tcpip/transport/tcp/test/e2e/tcp_noracedetector_test.go b/pkg/tcpip/transport/tcp/test/e2e/tcp_noracedetector_test.go index 01d9523ad..0a68b6d9d 100644 --- a/pkg/tcpip/transport/tcp/test/e2e/tcp_noracedetector_test.go +++ b/pkg/tcpip/transport/tcp/test/e2e/tcp_noracedetector_test.go @@ -15,9 +15,6 @@ // These tests are flaky when run under the go race detector due to some // iterations taking long enough that the retransmit timer can kick in causing // the congestion window measurements to fail due to extra packets etc. -// -//go:build !race -// +build !race package tcp_noracedetector_test