Skip to content

Commit 4207310

Browse files
committed
Fix flaky test case test_log_filter_sql
1 parent 3bb074f commit 4207310

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_commands.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,13 @@ def test_log_filter_sql(ldi_resources, capsys, caplog):
338338
grafana_wtf.commands.run()
339339
captured = capsys.readouterr()
340340

341-
assert captured.out.strip().split("\n") == [
342-
"- url: http://localhost:33333/d/ioUrPwQiz/luftdaten-info-generic-trend-v27",
343-
"- url: http://localhost:33333/d/jpVsQxRja/luftdaten-info-generic-trend-v33",
344-
"- url: http://localhost:33333/dashboards/f/testdrive/testdrive",
345-
]
341+
assert set(captured.out.strip().split("\n")) == set(
342+
[
343+
"- url: http://localhost:33333/d/ioUrPwQiz/luftdaten-info-generic-trend-v27",
344+
"- url: http://localhost:33333/d/jpVsQxRja/luftdaten-info-generic-trend-v33",
345+
"- url: http://localhost:33333/dashboards/f/testdrive/testdrive",
346+
]
347+
)
346348

347349

348350
def test_explore_datasources_used(create_datasource, create_dashboard, capsys, caplog):

0 commit comments

Comments
 (0)