Skip to content

Commit

Permalink
[Monitor][Query] Adjust server timeout live tests (#36719)
Browse files Browse the repository at this point in the history
Reduces flakiness

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
  • Loading branch information
pvaneck authored Aug 2, 2024
1 parent 359fa49 commit e5b455b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/monitor/azure-monitor-query/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/monitor/azure-monitor-query",
"Tag": "python/monitor/azure-monitor-query_8640f7c705"
"Tag": "python/monitor/azure-monitor-query_79499b2a8c"
}
3 changes: 2 additions & 1 deletion sdk/monitor/azure-monitor-query/tests/test_logs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def test_logs_server_timeout(self, recorded_test, monitor_info):
monitor_info['workspace_id'],
"range x from 1 to 1000000000000000 step 1 | count",
timespan=None,
server_timeout=1,
server_timeout=2,
retry_total=0
)
assert 'Gateway timeout' in e.value.message

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ async def test_logs_server_timeout(self, recorded_test, monitor_info):
monitor_info['workspace_id'],
"range x from 1 to 1000000000000000 step 1 | count",
timespan=None,
server_timeout=1,
server_timeout=2,
retry_total=0,
)

assert 'Gateway timeout' in e.value.message
Expand Down

0 comments on commit e5b455b

Please sign in to comment.