def test_query_timeout_fails(self):
        """
        VespaTimeoutError error is raised when Vespa responds with a timeout error.
        """
        query_client = VespaClient("http://localhost:8080", "http://localhost:8080",
                                   "http://localhost:8080", "content_default")

        def modified_post(*args, **kwargs):
            kwargs['json']['timeout'] = '1ms'
            return httpx.post(*args, **kwargs)

        with patch.object(
                httpx.Client, "post",
                wraps=modified_post
        ):
            with self.assertRaisesStrict(VespaTimeoutError):
                query_client.query(
                    yql="select * from sources * where title contains 'Title 1';"
                )

        VespaTimeoutError error is raised when Vespa responds with a timeout error.
        
tests/integ_tests/vespa/test_vespa_client.py