squic: disable flaky parallelism test
Disable the flaky accept loop parallelism test.
This test fails frequently in a CI environment. We suspect that it is
due to tight timings that are not serviced well enough.
GitOrigin-RevId:
@@ -36,6 +36,10 @@ import (
)
func TestAcceptLoopParallelism(t *testing.T) {
+ if _, ok := os.LookupEnv("CI"); ok {
+ t.Skip("Skipping test in CI environment. Timers are too tight!")
+ }
+
mctrl := gomock.NewController(t)
defer mctrl.Finish()
@@ -95,14 +99,7 @@ func TestAcceptLoopParallelism(t *testing.T) {
}()
}
wg.Wait()
-
- // Increase the threshold in CI environments as they have less processing
- // power.
- threshold := 50
- if _, ok := os.LookupEnv("CI"); ok {
- threshold = 300
- }
- require.Less(t, int(reattempts), threshold)
+ require.Less(t, reattempts, int32(50))
}
func TestGRPCQUIC(t *testing.T) {
