Skip to content

Commit 3ee50ac

Browse files
committed
Seed flaky JAX test
1 parent 11c6f1d commit 3ee50ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/distributions/test_random_alternative_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def mode(request):
3333
def test_dirichlet_multinomial(mode):
3434
"""Test we can draw from a DM in the JAX backend if the shape is constant."""
3535
dm = DirichletMultinomial.dist(n=5, a=np.eye(3) * 1e6 + 0.01)
36-
dm_draws = pm.draw(dm, mode=mode)
36+
dm_draws = pm.draw(dm, mode=mode, random_seed=36)
3737
np.testing.assert_equal(dm_draws, np.eye(3) * 5)
3838

3939

0 commit comments

Comments
 (0)