Test cancelling preview
This commit is contained in:
parent
05644456e0
commit
c066843f9b
2 changed files with 35 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue