### Body

Recently, [this test](https://github.com/apache/airflow/blob/9de301da2a44385f57be5407e80e16ee376f3d39/tests/cli/commands/test_internal_api_command.py#L134-L137) began to failed with timeout error and it has affected all tests in single CI run. As temporary solution this test was marked as `quarantined`.

We should figure out why it happen and try to resolve it.



### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
with mock.patch(
            "airflow.cli.commands.internal_api_command.create_app", return_value=app
        ), mock.patch.object(app, "run") as app_run:
            args = self.parser.parse_args(
                [
                    "internal-api",
                    "--debug",
                ]
            )
            internal_api_command.internal_api(args)
            app_run.assert_called_with(
                debug=True,
                use_reloader=False,
                port=9080,
                host="0.0.0.0",
            )
    def test_cli_internal_api_args(self):
        with mock.patch("subprocess.Popen") as Popen, mock.patch.object(
            internal_api_command, "GunicornMonitor"
        ):
            args = self.parser.parse_args(
                [
                    "internal-api",
                    "--access-logformat",
                    "custom_log_format",
                    "--pid",
                    "/tmp/x.pid",
                ]
            )