Skip to content

[test coverage] decide_workers never returns None in the unit tests #6254

@crusaderky

Description

@crusaderky

if self.validate:
assert ws is None or isinstance(ws, WorkerState), (
type(ws),
ws,
)
assert ws.address in self.workers

This bug makes everything crash with AttributeError whenever the top-level function decide_workers returns None.
However, no unit test (where validate=True) catches this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsUnit tests and/or continuous integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions