Skip to content

Commit e5b455b

Browse files
authored
[Monitor][Query] Adjust server timeout live tests (#36719)
Reduces flakiness Signed-off-by: Paul Van Eck <[email protected]>
1 parent 359fa49 commit e5b455b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdk/monitor/azure-monitor-query/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/monitor/azure-monitor-query",
5-
"Tag": "python/monitor/azure-monitor-query_8640f7c705"
5+
"Tag": "python/monitor/azure-monitor-query_79499b2a8c"
66
}

sdk/monitor/azure-monitor-query/tests/test_logs_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def test_logs_server_timeout(self, recorded_test, monitor_info):
7878
monitor_info['workspace_id'],
7979
"range x from 1 to 1000000000000000 step 1 | count",
8080
timespan=None,
81-
server_timeout=1,
81+
server_timeout=2,
82+
retry_total=0
8283
)
8384
assert 'Gateway timeout' in e.value.message
8485

sdk/monitor/azure-monitor-query/tests/test_logs_client_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ async def test_logs_server_timeout(self, recorded_test, monitor_info):
5656
monitor_info['workspace_id'],
5757
"range x from 1 to 1000000000000000 step 1 | count",
5858
timespan=None,
59-
server_timeout=1,
59+
server_timeout=2,
60+
retry_total=0,
6061
)
6162

6263
assert 'Gateway timeout' in e.value.message

0 commit comments

Comments
 (0)