Closed janbormet closed 6 months ago
the simple wire package sets wire.NewAddressFunc, but also imports backend/sim/wire, which also calls that function. Go 1.21 changed / clarified the order in which init() gets called. Why do backends have their own wire address? Or does only the sim backend have one?
Either throw out the sim backend's wire package or if that's required, just directly use that type instead of the simple.Address type. But I think if simple has an address, then sim backend should not have one. Or change the dialer test to be package simple_test.
Location
TestAppRandomizerSet
inchannel/test/app_randomizer_internal_test.go
andTestDialer_Dial
, happy case inwire/net/simple/dialer_internal_test.go
Problem
There seem to be two failing unit tests. Apparently they do not fail in the CI nor for some of the maintainers, so there might be a race? These are the error traces (from
go test ./... --count=1
in content root):TestAppRandomizerSet
TestDialer_Dial
Proposal
First, find out why the errors do not occur in the CI, then fix.