Right now, HTTP1ConnectionsProvider.state is internal and some tests modify the state without HTTP1ConnectionsProvider knowing about this.
That cannot be right because HTTP1ConnectionsProvider cannot clean up stuff it didn't know happened. Therefore we see extremely fragile and ugly cleanup code in some tests.
Right now,
HTTP1ConnectionsProvider.stateis internal and some tests modify the state withoutHTTP1ConnectionsProviderknowing about this.That cannot be right because
HTTP1ConnectionsProvidercannot clean up stuff it didn't know happened. Therefore we see extremely fragile and ugly cleanup code in some tests.