func TestCloseAll(t *testing.T) { … } // TestCloseAllRace ensures CloseAll works with connections being simultaneously dialed func TestCloseAllRace(t *testing.T) { … } type closeOnlyConn … func (c closeOnlyConn) Close() error { … }
func TestCloseAll(t *testing.T) { … } // TestCloseAllRace ensures CloseAll works with connections being simultaneously dialed func TestCloseAllRace(t *testing.T) { … } type closeOnlyConn … func (c closeOnlyConn) Close() error { … }