Skip to content

Commit

Permalink
TestMultipleSchedulers.test_equiv_suspend_jobs failing due to race co…
Browse files Browse the repository at this point in the history
…ndition
  • Loading branch information
Bhagat-Rajput committed Dec 26, 2018
1 parent 8b972d2 commit 76fc34f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tests/functional/pbs_multi_sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,10 @@ def test_equiv_suspend_jobs(self):
self.scheds['sc1'].log_match("Number of job equivalence classes: 2",
max_attempts=10, starttime=t)
t = int(time.time())
# Make sure that Job is in R state before issuing a signal to suspend
self.server.expect(JOB, {'job_state': 'R'}, id=jid1)
self.server.sigjob(jobid=jid1, signal="suspend")
self.server.expect(JOB, {'job_state': 'R'}, id=jid3)
self.server.sigjob(jobid=jid3, signal="suspend")
self.server.manager(MGR_CMD_SET, SCHED,
{'scheduling': 'True'}, id="sc1")
Expand Down

0 comments on commit 76fc34f

Please sign in to comment.