We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0faccf5 commit 9478857Copy full SHA for 9478857
tests/user_guide/test_job_wait_active.py
@@ -3,8 +3,9 @@
3
4
def test_user_guide_job_wait_active() -> None:
5
ex = JobExecutor.get_instance('local')
6
- job = Job(JobSpec(executable='/bin/date'))
+ job = Job(JobSpec(executable='/bin/sleep', arguments=['1']))
7
ex.submit(job)
8
status = job.wait(target_states=[JobState.ACTIVE])
9
assert status is not None
10
assert status.state == JobState.ACTIVE
11
+ job.wait() # prevent logging messages from showing up after test completes
0 commit comments