Skip to content

Commit

Permalink
Fix 2 more tests that fail sometimes in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemhenry committed Oct 1, 2024
1 parent c2a13c0 commit 7a1a7d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmmtools/tests/test_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,15 @@ 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)

# 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)
Expand Down

0 comments on commit 7a1a7d9

Please sign in to comment.