def METHOD_NAME(self, times):
    self.count_test_retry_decorators_force_deny = 0
    @retry_on_rpc_failure(retry_times=times)
    def test_api(self, code, retry_on_rate_limit):
        self.count_test_retry_decorators_force_deny += 1
        self.mock_milvus_exception(code)
    with pytest.raises(MilvusException) as e:
        test_api(self, common_pb2.RateLimit, retry_on_rate_limit=False)
    print(e)
    assert "rate limit" in e.value.message
    # the first execute + 0 retry times
    assert self.count_test_retry_decorators_force_deny == 1