Skip to content

Commit 2133a30

Browse files
committed
remove wait for deployment job code
1 parent cd8a582 commit 2133a30

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

integration/tests/posit/connect/test_system.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,6 @@ def _remove_all_caches(self):
4343
task.wait_for()
4444
assert len(self.client.system.caches.runtime.find()) == 0
4545

46-
def _wait_for_cache_jobs(self):
47-
start_time = time.time()
48-
continue_while = True
49-
while continue_while:
50-
now_time = time.time()
51-
if now_time - start_time > 30:
52-
raise TimeoutError("Timeout while waiting for cache to deploy")
53-
54-
jobs = self.content_item.jobs.fetch()
55-
if len(list(jobs)) == 0:
56-
# No jobs found, restart while loop
57-
continue
58-
59-
for job in jobs:
60-
if str(job["status"]) == "0":
61-
# Stop for loop and restart while loop
62-
break
63-
else:
64-
# Only executed if the for loop did NOT break
65-
66-
# Break the while loop
67-
continue_while = False
68-
6946
@classmethod
7047
def teardown_class(cls):
7148
cls.content_item.delete()
@@ -82,9 +59,6 @@ def test_runtime_caches(self):
8259
# Deploy a new cache
8360
self._deploy_python_bundle()
8461

85-
# Wait for the cache jobs to finish
86-
self._wait_for_cache_jobs()
87-
8862
# Check if the cache is deployed
8963
caches = self.client.system.caches.runtime.find()
9064

0 commit comments

Comments
 (0)