MCPcopy Index your code
hub / github.com/celzero/firestack / TestWaitGroupRaceCondition

Function TestWaitGroupRaceCondition

intra/netstack/waitgroup_test.go:13–97  ·  view source on GitHub ↗

TestWaitGroupRaceCondition tests that the WaitGroup reuse issue is fixed. This test reproduces the scenario where an endpoint is swapped while another goroutine is waiting on the old endpoint.

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 10

NameMethod · 0.80
DoneMethod · 0.80
NewEndpointFunction · 0.70
RemoveMethod · 0.65
FatalfMethod · 0.65
DisposeMethod · 0.65
AddMethod · 0.65
SwapMethod · 0.65
CloseMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected