Skip to content

Fix inter-dependency of tests in engine_client_test.py #5870

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

Closed
pavoljuhas opened this issue Sep 9, 2022 · 0 comments · Fixed by #5892
Closed

Fix inter-dependency of tests in engine_client_test.py #5870

pavoljuhas opened this issue Sep 9, 2022 · 0 comments · Fixed by #5892
Labels
kind/health For CI/testing/release process/refactoring/technical debt items

Comments

@pavoljuhas
Copy link
Collaborator

Description of the issue

When pytest-randomly shuffles unit tests order, engine_client_test.py has several failures which go away when tests are run in unchanged order - https://github.com/quantumlib/Cirq/runs/8261627949.

Cirq version

Cirq 1.1.0.dev at 13890c6 in #5868.

@pavoljuhas pavoljuhas added the kind/health For CI/testing/release process/refactoring/technical debt items label Sep 9, 2022
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this issue Sep 9, 2022
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this issue Sep 27, 2022
Restrict mocking to the relevant test module only.

Fixes quantumlib#5870.
CirqBot pushed a commit that referenced this issue Sep 27, 2022
- Avoid clashing test mocks of QuantumEngineServiceClient by limiting
  mocking to the relevant test module.
- Enable test reordering by pytest-randomly.

Fixes #5870.
rht pushed a commit to rht/Cirq that referenced this issue May 1, 2023
- Avoid clashing test mocks of QuantumEngineServiceClient by limiting
  mocking to the relevant test module.
- Enable test reordering by pytest-randomly.

Fixes quantumlib#5870.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/health For CI/testing/release process/refactoring/technical debt items
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant