From 2d87e7ebeacb33836f8c959a00bb059ff3683963 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 7 Sep 2019 14:53:18 +0100 Subject: monkey_driver: Make window-close take timeout=5 In the parallel test we run, it can sometimes take more than a second for the JS compartment of a window to close down. Since that's part of the shutdown of a window, the driver can end up timing out. Default the timeout to 5s for window-close but make it possible to specify in the yaml too. Signed-off-by: Daniel Silverstone --- test/monkey_driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/monkey_driver.py b/test/monkey_driver.py index 9d2af0510..7f8a430c0 100755 --- a/test/monkey_driver.py +++ b/test/monkey_driver.py @@ -265,8 +265,9 @@ def run_test_step_action_window_close(ctx, step): tag = step['window'] assert ctx['windows'].get(tag) is not None win = ctx['windows'].pop(tag) + timeout = int(step.get('timeout', 5)) win.kill() - win.wait_until_dead() + win.wait_until_dead(timeout=timeout) assert not win.alive -- cgit v1.2.3