Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

test(dualsense): send a fixed count of trigger resets instead of a 1.2 s window

raymondchins3941fb657aa3
diff --git a/controllers/dualsense/test-trigger-routing.py b/controllers/dualsense/test-trigger-routing.py
index 202dc25..e6062ae 100644
--- a/controllers/dualsense/test-trigger-routing.py
+++ b/controllers/dualsense/test-trigger-routing.py
@@ -49,8 +49,8 @@ for pcm, grace in ((False, 75), (False, 0), (True, 0)):
addr,
)
- end = time.monotonic() + 1.2
- while time.monotonic() < end:
+ # A fixed count, not a 1.2 s window: slow CI hosts oversleep.
+ for _ in range(110):
send(curve)
send(off)
time.sleep(0.01)