Skip to content

Commit e2745a0

Browse files
committed
Tests: Fix healthcheck test
1 parent 642722f commit e2745a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/elements/test_health.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ def setUp(self):
1010
self.grafana = GrafanaApi(("admin", "admin"), host="localhost", url_path_prefix="", protocol="http")
1111

1212
@requests_mock.Mocker()
13-
def test_search_dashboards(self, m):
13+
def test_healthcheck(self, m):
1414
m.get(
1515
"http://localhost/api/health",
16-
json=[{"commit": "6f8c1d9fe4", "database": "ok", "version": "7.5.11"}],
16+
json={"commit": "6f8c1d9fe4", "database": "ok", "version": "7.5.11"},
1717
)
1818

1919
result = self.grafana.health.check()
20-
self.assertEqual(result[0]["database"], "ok")
21-
self.assertEqual(len(result), 1)
20+
self.assertEqual(result["database"], "ok")
21+
self.assertEqual(len(result), 3)

0 commit comments

Comments
 (0)