Skip to content

Commit e79be60

Browse files
committed
Fix flaky test
1 parent f76a9f9 commit e79be60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_sequencing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@ def test_different_n_opers(self):
530530
n_coeffs[permutation],
531531
n_ids[permutation])),
532532
dt)
533+
534+
# draw more noise indices, but make sure they're not exactly the same
535+
while sorted(more_n_idx := sample(range(10), rng.integers(2, 5))) == sorted(n_idx):
536+
continue
533537
more_n_idx = sample(range(10), rng.integers(2, 5))
534538
more_n_opers = opers[more_n_idx]
535539
more_n_coeffs = np.ones((more_n_opers.shape[0], n_dt))

0 commit comments

Comments
 (0)