go-api/norace_test.go
Snider 280f920410
All checks were successful
Security Scan / security (push) Successful in 13s
Test / test (push) Successful in 3m54s
fix: skip timeout tests under race detector (upstream gin-contrib/timeout data race)
gin-contrib/timeout@v1.1.0 has a known data race on Context.index between
the timeout goroutine and the handler goroutine. Use build-tag conditional
compilation to detect -race and skip affected tests.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 08:05:16 +00:00

6 lines
107 B
Go

// SPDX-License-Identifier: EUPL-1.2
//go:build !race
package api_test
const raceDetectorEnabled = false