Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Fixed worker_pids test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leevar Williams committed Jan 22, 2013
1 parent 062b548 commit e119d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ def test_worker_pids(self):
os.waitpid(pid, 0)

# ensure worker_pids() returned the correct pids
assert len(worker_pids) == len(pids)
for pid in pids:
assert str(pid) in worker_pids

# ensure there are no longer any workers running
# ensure the workers are no longer returned by worker_pids()
worker_pids = Worker.worker_pids()
assert len(worker_pids) == 0
for pid in pids:
assert str(pid) not in worker_pids

def spawn_worker(self, queues):
pid = os.fork()
Expand Down

0 comments on commit e119d7e

Please sign in to comment.