Skip to content

Conversation

@zhihao11ui
Copy link

Ran pytest --maxfail=1 --reruns 3 and noticed QueueNotConnectedError from

  • test_mock_queue_unique
  • test_mock_queue_put_get
  • test_mock_queue_get_put_same_task

These tests were found to be flaky, causing error when the Queue was not connected.

The solution is to explicitly connect the Queues, and clear the queue at the beginning to prevent any leftover tasks from influencing the test outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant