Skip to content

Commit 5e8466b

Browse files
authored
Avoid CI flake due to random-seed-dependent test (#7016)
This prevents test failure for ``` check/pytest --numprocesses=0 --randomly-seed=1589095746 \ cirq-core/cirq/transformers/analytical_decompositions/controlled_gate_decomposition_test.py::test_decompose_random_special_unitary ```
1 parent 6b2f4d7 commit 5e8466b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cirq-core/cirq/transformers/analytical_decompositions/controlled_gate_decomposition_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def test_decompose_random_unitary():
9696
_test_decompose(_random_unitary(), controls_count)
9797

9898

99+
@cirq.testing.retry_once_with_later_random_values
99100
def test_decompose_random_special_unitary():
100101
for controls_count in range(5):
101102
for _ in range(10):

0 commit comments

Comments
 (0)