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>
6 lines
105 B
Go
6 lines
105 B
Go
// SPDX-License-Identifier: EUPL-1.2
|
|
//go:build race
|
|
|
|
package api_test
|
|
|
|
const raceDetectorEnabled = true
|