Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IndepQueueManager test #5832

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Fix IndepQueueManager test #5832

merged 2 commits into from
Nov 21, 2023

Conversation

MetRonnie
Copy link
Member

Closes #5812

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • No dependency changes
  • Tests are included
  • No CHANGES.md entry needed
  • No docs needed
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@MetRonnie MetRonnie added this to the cylc-8.2.4 milestone Nov 21, 2023
@MetRonnie MetRonnie requested a review from wxtim November 21, 2023 11:03
@MetRonnie MetRonnie self-assigned this Nov 21, 2023
Comment on lines -94 to -97
# check released tasks change state to "preparing", and not is_queued
for r in released:
assert r.state.reset.called_with(TASK_STATUS_PREPARING)
assert r.state.reset.called_with(is_queued=False)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

itask.state.reset() is only ever called by TaskPool.release_queued_tasks(), so not applicable for this test

@MetRonnie MetRonnie linked an issue Nov 21, 2023 that may be closed by this pull request
@oliver-sanders oliver-sanders merged commit e692a06 into cylc:8.2.x Nov 21, 2023
18 of 23 checks passed
@MetRonnie MetRonnie deleted the tests branch November 21, 2023 15:12
wxtim added a commit to wxtim/cylc that referenced this pull request Dec 5, 2023
…at_runtime

* upstream/master:
  log_vc_info: handle long command output (cylc#5821)
  GH Actions: limit tutorial workflow to Py3.11
  remove cylc task dependencies env var (cylc#5836)
  Refactor.lint (cylc#5718)
  protobuf 4.24.4 upgrade (cylc#5828)
  made reinstall work on multiple workflows
  Fix `IndepQueueManager` test (cylc#5832)
  Lint: Add a check for indentation being 4N spaces. (cylc#5772)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing: Mock object will always return True!
2 participants