anchor.diff:                        Expect.fail("Unexpected successful response completion");
                       })
                       .catchError((e) {
  -                      Expect.isTrue(e.error is HttpException, "[$e] [${e.error}]");
  +                      Expect.isTrue(e.error is HttpException, "[$e]");
  +                      if (++serverCount == totalConnections) {
  +                        server.close();
  +                      }
                       });
                   response.close();
                   Expect.throws(() => response.addString("x"),
  
positive.code: 
  void testBody(int totalConnections, bool useHeader) {
    HttpServer.bind("127.0.0.1", 0, totalConnections).then((server) {
      server.listen(
          (HttpRequest request) {
            Expect.equals("2", request.headers.value('content-length'));
  
negative.code:             response.listen(
                  (d) {},
                  onDone: () {
                    if (++clientCount == totalConnections) {
                      client.close();
                    }
                  });
            });
  