File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,10 @@ def test_submit_max_pending_time(self):
206206 self .parallel_cmd = 'sleep 30'
207207 self .prepare ()
208208 self .testjob .scheduler ._update_state = self ._update_state
209- self .testjob ._max_pending_time = timedelta (seconds = 5 )
209+ self .testjob ._max_pending_time = timedelta (milliseconds = 50 )
210210 self .testjob .submit ()
211- with pytest .raises (JobError ):
211+ with pytest .raises (JobError ,
212+ match = 'maximum pending time exceeded' ):
212213 self .testjob .wait ()
213214
214215
@@ -588,6 +589,9 @@ def test_submit_timelimit(self):
588589 def _update_state (self , job ):
589590 job .state = 'QUEUED'
590591
592+ def test_submit_max_pending_time (self ):
593+ _TestJob .test_submit_max_pending_time (self )
594+
591595
592596class TestSlurmFlexibleNodeAllocation (unittest .TestCase ):
593597 def create_dummy_nodes (obj ):
You can’t perform that action at this time.
0 commit comments