Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
test(dualsense): drain the bridge packets with a 0.3 s timeout
raymondchinsa81150b21558
diff --git a/controllers/dualsense/test-bridge.py b/controllers/dualsense/test-bridge.pyindex 854c03b..f4a91d8 100644--- a/controllers/dualsense/test-bridge.py+++ b/controllers/dualsense/test-bridge.py@@ -12,7 +12,9 @@ packet = struct.Struct("<II16sIIdff64s")token = bytes.fromhex("12" * 16)s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)s.bind(("127.0.0.1", 0))-s.settimeout(1)+# Read once audio-test has exited, when its packets are already on their way: the+# timeout only has to outlast loopback delivery.+s.settimeout(0.3)env = dict(os.environ,DSB_PORT=str(s.getsockname()[1]),