carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build race
2
3package relay
4
5// raceDetector lets one test skip itself under -race. The race it would
6// report is upstream, in pion/turn: Allocation.AddPermission publishes a
7// permission under permissionsLock and then calls perms.start(), which
8// writes p.lifetimeTimer with no lock, while Allocation.Close reads that
9// field from the packet-handler goroutine. Nothing in this package can fix
10// it, and leaving it unskipped costs the whole package its -race coverage,
11// which is worth more than this one test (discussion #120).
12const raceDetector = true
13