Test cancelling preview

This commit is contained in:
Julian Stirling 2025-08-12 16:42:15 +01:00
parent 05644456e0
commit c066843f9b
2 changed files with 35 additions and 3 deletions

View file

@ -11,6 +11,9 @@ def main():
# This is used to check we catch errors correctly.
if arg == "ERROR":
raise RuntimeError("I was told to do this.")
if arg == "HANG":
# Rather than hang, just sleep for 10s:
time.sleep(10)
print(arg, flush=True)
time.sleep(0.2)