TestPruneLargeFixture's <5s budget is invalid under the race detector (~20s vs ~1.2s). The Main integration cmd/bd shard runs with -race; gate the timing assertion on a build-tag raceEnabled flag so only non-race builds enforce it. Correctness assertions still run under -race.
6 lines
132 B
Go
6 lines
132 B
Go
//go:build !race
|
|
|
|
package main
|
|
|
|
// raceEnabled is false in non-race builds; see race_detector_on_test.go.
|
|
const raceEnabled = false
|