def METHOD_NAME():
    """
    Test for wait_for_successful_query waits for request_interval
    """
    query_mock = MagicMock(side_effect=[{"error": "error"}, {"result": True}])
    with patch.object(http, "query", query_mock):
        with patch("time.sleep", MagicMock()) as sleep_mock:
            assert http.wait_for_successful_query(
                "url", request_interval=1, status=200
            ) == {"result": True}
            sleep_mock.assert_called_once_with(1)