Skip to content

Commit 620277d

Browse files
committed
Fix tests
1 parent f435f5c commit 620277d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

app/tests/components_tests/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ def test_start_endpoint(mocker):
15001500

15011501
for mock_method in mock_start_methods:
15021502
mock_method.assert_called_once()
1503-
assert endpoint.status == endpoint.StatusChoices.RUNNING
1503+
assert endpoint.status == endpoint.StatusChoices.STARTED
15041504

15051505

15061506
@pytest.mark.django_db

app/tests/core_tests/test_tasks.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ def test_get_metrics():
319319
"Unit": "Count",
320320
},
321321
{
322-
"MetricName": "EndpointsRunning",
322+
"MetricName": "EndpointsStarted",
323323
"Dimensions": [{"Name": "Model", "Value": "Endpoint"}],
324324
"Value": 0,
325325
"Unit": "Count",
326326
},
327327
{
328-
"MetricName": "EndpointsStopped",
328+
"MetricName": "EndpointsRunning",
329329
"Dimensions": [{"Name": "Model", "Value": "Endpoint"}],
330330
"Value": 0,
331331
"Unit": "Count",
@@ -336,6 +336,12 @@ def test_get_metrics():
336336
"Value": 0,
337337
"Unit": "Count",
338338
},
339+
{
340+
"MetricName": "EndpointsStopped",
341+
"Dimensions": [{"Name": "Model", "Value": "Endpoint"}],
342+
"Value": 0,
343+
"Unit": "Count",
344+
},
339345
{
340346
"MetricName": "OldestActiveAlgorithmImage",
341347
"Value": 0,

0 commit comments

Comments
 (0)