mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
implement task queue waiting for resources
This commit is contained in:
1 parent
2d97ba2bbd
commit
45035802be
5 files changed
+92
-50
No files matched your search
@@ -20,9 +20,9 @@ class TaskAPITestParallelTasks(APITest):
|
||||
resp = self.put("/api/mirrors/" + mirror_name, json=mirror_desc, params={'_async': True})
|
||||
self.check_equal(resp.status_code, 202)
|
||||
|
||||
# check that two mirror updates cannot run at the same time
|
||||
# check that two mirror updates are queuedd
|
||||
resp2 = self.put("/api/mirrors/" + mirror_name, json=mirror_desc, params={'_async': True})
|
||||
self.check_equal(resp2.status_code, 409)
|
||||
self.check_equal(resp2.status_code, 202)
|
||||
|
||||
return resp.json()['ID'], mirror_name
|
||||
|
||||
|
||||
Reference in new issue
Block a user