Skip to content

Commit

Permalink
Tests: Fix flaky test when httpbin.org responds with "Server Error 502"
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Mar 29, 2024
1 parent f091384 commit e1c4358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_grafana_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_grafana_client_version(self, mock_get):
self.assertEqual(grafana.version, "9.0.1")

def test_grafana_client_non_json_response(self):
grafana = GrafanaApi.from_url("https://httpbin.org/html")
grafana = GrafanaApi.from_url("https://example.org/")
self.assertRaises(GrafanaClientError, lambda: grafana.connect())

def test_grafana_client_204_no_content_response(self):
Expand Down

0 comments on commit e1c4358

Please sign in to comment.