We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
play.grafana.org
1 parent ae7e570 commit 7acc4d8Copy full SHA for 7acc4d8
test/test_async.py
@@ -37,11 +37,11 @@ async def fetch_dashboard(async_client, uid):
37
38
tasks = []
39
40
- for folder in folders:
+ for folder in folders[:2]:
41
if folder["id"] > 0: # someone created an entry with a negative id...
42
- tasks.append(fetch_dashboard(grafana, folder["uid"]))
43
- if len(tasks) == 4:
44
- break
+ dashboards = await grafana.search.search_dashboards(folder_uids=[folder["uid"]])
+ for dashboard in dashboards[:4]:
+ tasks.append(fetch_dashboard(grafana, dashboard["uid"]))
45
46
results = await asyncio.gather(*tasks)
47
0 commit comments