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