test: remove unused, optional/positional argument in private function
diff --git a/test/http_parser_test.dart b/test/http_parser_test.dart
index 8db9d1d..90a1d5b 100644
--- a/test/http_parser_test.dart
+++ b/test/http_parser_test.dart
@@ -293,7 +293,7 @@
     testWrite(responseData, 1);
   }
 
-  static void _testParseInvalidResponse(String response, [bool close = false]) {
+  static void _testParseInvalidResponse(String response) {
     void testWrite(Uint8List requestData, [int chunkSize = -1]) {
       HttpParser httpParser = HttpParser.responseParser();
       StreamController<Uint8List> controller = StreamController(sync: true);