test(sync): 登记 S-01 生产验收

This commit is contained in:
2026-09-09 09:22:47 +08:00
parent 9f772aed48
commit 640e45196f
5 changed files with 203 additions and 8 deletions
+6
View File
@@ -29,6 +29,12 @@ def main():
for _ in range(600):
if not marker.exists(): break
await asyncio.sleep(.05)
if (root / 'interrupt-revision').exists() and request.method == 'POST' and request.url.path.endswith('/revisions') and response.status_code == 200:
marker = root / 'revision-committed'
marker.write_text('committed', encoding='ascii')
for _ in range(600):
if not (root / 'interrupt-revision').exists(): break
await asyncio.sleep(.05)
return response
sock = socket.socket()
sock.bind(('127.0.0.1', 0))