Files
upstream-watermill/pubsub/tests/test_pubsub_stress.go
2026-09-15 21:27:46 +05:00

17 lines
246 B
Go

//go:build stress
// +build stress
package tests
import (
"runtime"
)
func init() {
// stress tests may work a bit slower
defaultTimeout *= 5
// Set GOMAXPROCS to double the number of CPUs
runtime.GOMAXPROCS(runtime.GOMAXPROCS(0) * 2)
}