mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-15 18:39:42 -04:00
fix some errors in test_resume_job
This commit is contained in:
parent
bb98a43c8c
commit
c4fa612547
1 changed files with 2 additions and 2 deletions
|
@ -287,7 +287,7 @@ def test_resume_job():
|
||||||
# simulate job resume after a stop request
|
# simulate job resume after a stop request
|
||||||
frontier.resume_job(job)
|
frontier.resume_job(job)
|
||||||
site1 = list(frontier.job_sites(job.id))[0]
|
site1 = list(frontier.job_sites(job.id))[0]
|
||||||
site2 = list(frontier.job_sites(job.id))[0]
|
site2 = list(frontier.job_sites(job.id))[1]
|
||||||
|
|
||||||
assert job.status == 'ACTIVE'
|
assert job.status == 'ACTIVE'
|
||||||
assert job.stop_requested is None
|
assert job.stop_requested is None
|
||||||
|
@ -308,7 +308,7 @@ def test_resume_job():
|
||||||
site1.save()
|
site1.save()
|
||||||
|
|
||||||
# should not raise a CrawlStopped
|
# should not raise a CrawlStopped
|
||||||
frontier.honor_stop_request(site)
|
frontier.honor_stop_request(site2)
|
||||||
|
|
||||||
frontier.finished(site1, 'FINISHED_STOP_REQUESTED')
|
frontier.finished(site1, 'FINISHED_STOP_REQUESTED')
|
||||||
job.refresh()
|
job.refresh()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue