mark also windows for non-reliable sleep times

This commit is contained in:
Peter Bieringer
2026-06-28 22:15:44 +02:00
parent 667f9c0109
commit 69b265b539
2 changed files with 4 additions and 4 deletions

View File

@@ -874,7 +874,7 @@ permissions: RrWw""")
delay = .3
delay_min = delay * 0.9 # no random jitter during test
delay_max = delay + 0.2 # no random jitter during test
if sys.platform == "darwin": # no reliable sleep times
if sys.platform == "darwin" or sys.platform == "win32": # no reliable sleep times
delay_max = delay_max * 1.5
self.configure({"server": {"delay_on_error": delay}})
@@ -910,7 +910,7 @@ permissions: RrWw""")
delay = .3
delay_min = delay * 0.9 # no random jitter during test
delay_max = delay + 0.2 # no random jitter during test
if sys.platform == "darwin": # no reliable sleep times
if sys.platform == "darwin" or sys.platform == "win32": # no reliable sleep times
delay_max = delay_max * 1.5
self.configure({"rights": {"permit_delete_collection": False}, "auth": {"delay": delay}})

View File

@@ -266,7 +266,7 @@ class TestSharingApiSanity(BaseTest):
delay = .3
delay_min = delay * 0.9 # no random jitter during test
delay_max = delay + 0.2 # no random jitter during test
if sys.platform == "darwin": # no reliable sleep times
if sys.platform == "darwin" or sys.platform == "win32": # no reliable sleep times
delay_max = delay_max * 1.5
for path in ["/.sharing", "/.sharing/"]:
@@ -930,7 +930,7 @@ class TestSharingApiSanity(BaseTest):
delay = .3
delay_min = delay * 0.9 # no random jitter during test
delay_max = delay + 0.2 # no random jitter during test
if sys.platform == "darwin": # no reliable sleep times
if sys.platform == "darwin" or sys.platform == "win32": # no reliable sleep times
delay_max = delay_max * 1.5
self.configure({"auth": {"type": "htpasswd",