snapshot of https://github.com/ThreeDotsLabs/watermill.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
master / ci (push) Failing after 0s
Some checks failed
master / ci (push) Failing after 0s
This commit is contained in:
16
pubsub/tests/test_pubsub_stress.go
Normal file
16
pubsub/tests/test_pubsub_stress.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//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)
|
||||
}
|
||||
Reference in New Issue
Block a user