mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Attempted fix for transiently failing API test_jobs introduced in #3619.
A couple things need to occur while the jobs are "running" and it seems that 60 seconds wasn't enough time to sleep for all that to happen on Jenkins. I checked the timing in the raw logs (they are for some reasons being filtered out in the Jenkins display of the XUnit) - and indeed the jobs are properly sleeping the correct amount of time but the client API calls need some more time it seems. My initial thought was maybe the jobs were being interrupted or something - and that does not appear to be the case.
This commit is contained in:
@@ -131,7 +131,7 @@ class JobsApiTestCase( api.ApiTestCase ):
|
||||
self._assert_has_keys( show_jobs_response.json(), "command_line", "external_id" )
|
||||
|
||||
def test_deleting_output_keep_running_until_all_deleted( self ):
|
||||
history_id, job_state, outputs = self._setup_running_two_output_job( 60 )
|
||||
history_id, job_state, outputs = self._setup_running_two_output_job( 120 )
|
||||
|
||||
# Delete one of the two outputs and make sure the job is still running.
|
||||
self._raw_update_history_item( history_id, outputs[0]["id"], {"deleted": True} )
|
||||
@@ -145,7 +145,7 @@ class JobsApiTestCase( api.ApiTestCase ):
|
||||
assert final_state in ["deleted_new", "deleted"], final_state
|
||||
|
||||
def test_purging_output_keep_running_until_all_purged( self ):
|
||||
history_id, job_state, outputs = self._setup_running_two_output_job( 60 )
|
||||
history_id, job_state, outputs = self._setup_running_two_output_job( 120 )
|
||||
|
||||
# Pretty much right away after the job is running, these paths should be populated -
|
||||
# if they are grab them and make sure they are deleted at the end of the job.
|
||||
|
||||
Reference in New Issue
Block a user