Skip to content

Commit

Permalink
Test fix 7
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Jul 27, 2024
1 parent 615b450 commit 7b88242
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pynetdicom/tests/test_assoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7571,12 +7571,12 @@ def test_no_ctypes(self):
@pytest.mark.skipif(not HAVE_CTYPES, reason="No ctypes module")
def test_set_timer_resolution(self):
"""Test setting the windows timer resolution works."""
min_val, max_val, pre_timer = self.get_timer_info()
min_val, max_val, now = self.get_timer_info()
# Ensure we always start with the worst resolution
print("Initial", min_val, max_val, pre_timer)
print("Initial", min_val, max_val, now)
with set_timer_resolution(max_val / 10000):
min_val, max_val, now = self.get_timer_info()
print("Setup", min_val, max_val, now)
min_val, max_val, pre_timer = self.get_timer_info()
print("Setup", min_val, max_val, pre_timer)
# Set the timer resolution to the minimum plus 10%
pynetdicom._config.WINDOWS_TIMER_RESOLUTION = min_val * 1.10 / 10000

Expand Down

0 comments on commit 7b88242

Please sign in to comment.