Skip to content

Commit

Permalink
entries = await rc.request("GET", "/scans/backlog")["entries"]
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jun 13, 2023
1 parent ef05138 commit 3f96bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_backlog_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ async def test_10(

for i in range(N_JOBS + 1):
resp = await rc.request("POST", "/scan", POST_SCAN_BODY)
entries = await rc.request("GET", "/scans/backlog")
entries = await rc.request("GET", "/scans/backlog")["entries"]
print_it(entries)
assert len(entries) == i + 1
if i == N_JOBS - 2: # late enough that it won't be started yet by runner
if i == N_JOBS - 2:
await rc.request("DELETE", f"/scan/{resp['scan_id']}")

await asyncio.sleep(skydriver.config.ENV.SCAN_BACKLOG_RUNNER_DELAY * N_JOBS * 1.01)
Expand Down

0 comments on commit 3f96bc2

Please sign in to comment.