Skip to content

Commit 614af57

Browse files
authored
[Monitor][Query] Fix CI failures (Azure#28642)
Fixes a live test CI failure that has been occurring recently. Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
1 parent 7cf2dbd commit 614af57

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

sdk/monitor/azure-monitor-query/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.1.0 (2023-02-07)
3+
## 1.1.0 (Unreleased)
44

55
### Bugs Fixed
66

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_a38512761f"
5+
"Tag": "python/monitor/azure-monitor-query_3c8d44893c"
66
}

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ async def test_logs_auth_no_timespan(self, monitor_info):
4747
async def test_logs_server_timeout(self, recorded_test, monitor_info):
4848
client = self.create_client_from_credential(
4949
LogsQueryClient, self.get_credential(LogsQueryClient, is_async=True))
50-
async with client:
51-
with pytest.raises(HttpResponseError) as e:
52-
response = await client.query_workspace(
50+
51+
with pytest.raises(HttpResponseError) as e:
52+
async with client:
53+
await client.query_workspace(
5354
monitor_info['workspace_id'],
54-
"range x from 1 to 10000000000 step 1 | count",
55+
"range x from 1 to 1000000000000000 step 1 | count",
5556
timespan=None,
5657
server_timeout=1,
5758
)
58-
assert e.message.contains('Gateway timeout')
59+
60+
assert 'Gateway timeout' in e.value.message
5961

6062
@pytest.mark.asyncio
6163
async def test_logs_query_batch_raises_on_no_timespan(self, monitor_info):

0 commit comments

Comments
 (0)