From 7a1a7d9a9566bb4c3c944fd4f15846581429260e Mon Sep 17 00:00:00 2001 From: Mike Henry <11765982+mikemhenry@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:18:37 -0700 Subject: [PATCH] Fix 2 more tests that fail sometimes in CI --- openmmtools/tests/test_sampling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmmtools/tests/test_sampling.py b/openmmtools/tests/test_sampling.py index f16188bf..98428122 100644 --- a/openmmtools/tests/test_sampling.py +++ b/openmmtools/tests/test_sampling.py @@ -306,6 +306,7 @@ def run(self, include_unsampled_states=False): # Clean up. del simulation + @pytest.mark.flaky(reruns=3) def test_with_unsampled_states(self): """Test multistate sampler on a harmonic oscillator with unsampled endstates""" self.run(include_unsampled_states=True) @@ -313,6 +314,7 @@ def test_with_unsampled_states(self): # on windows we get a ZeroDivisionError: float division by zero # when measuring the timing data @pytest.mark.skipif(sys.platform.startswith("win"), reason="Test fails on windows") + @pytest.mark.flaky(reruns=3) def test_without_unsampled_states(self): """Test multistate sampler on a harmonic oscillator without unsampled endstates""" self.run(include_unsampled_states=False)