From 3b05c103026e1d1acd71a96b777da70c478a325f Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Thu, 22 Jul 2021 11:29:31 -0700 Subject: [PATCH] skip https://github.com/Azure/azure-sdk-for-python/issues/19917 --- .../azure-monitor-query/tests/async/test_logs_client_async.py | 3 +-- sdk/monitor/azure-monitor-query/tests/test_logs_client.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py b/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py index 86c5848342c1..ab089a004e86 100644 --- a/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py +++ b/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py @@ -1,6 +1,5 @@ import pytest import os -import time from azure.identity.aio import ClientSecretCredential from azure.core.exceptions import HttpResponseError from azure.monitor.query import LogsQueryRequest @@ -28,10 +27,10 @@ async def test_logs_auth(): assert response is not None assert response.tables is not None +@pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/19917") @pytest.mark.live_test_only async def test_logs_server_timeout(): client = LogsQueryClient(_credential()) - time.sleep(10) with pytest.raises(HttpResponseError) as e: response = await client.query( os.environ['LOG_WORKSPACE_ID'], diff --git a/sdk/monitor/azure-monitor-query/tests/test_logs_client.py b/sdk/monitor/azure-monitor-query/tests/test_logs_client.py index ee0a8dbc402d..8dc945f4b380 100644 --- a/sdk/monitor/azure-monitor-query/tests/test_logs_client.py +++ b/sdk/monitor/azure-monitor-query/tests/test_logs_client.py @@ -48,6 +48,7 @@ def test_logs_single_query_with_partial_success(): assert response is not None +@pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/19917") @pytest.mark.live_test_only def test_logs_server_timeout(): client = LogsQueryClient(_credential())