From 927b385cc9d7b297c96aef3698ee3b5f0aee2a87 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 21 May 2014 18:07:27 +0200 Subject: [PATCH] Fix mumble test: wait for X windows to appear, not only sleep --- nixos/tests/mumble.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/mumble.nix b/nixos/tests/mumble.nix index 8896830b0c22..68ab8b642b01 100644 --- a/nixos/tests/mumble.nix +++ b/nixos/tests/mumble.nix @@ -28,7 +28,9 @@ in $client1->execute("mumble mumble://client1\@server/test &"); $client2->execute("mumble mumble://client2\@server/test &"); - $server->sleep(10); # Wait for Mumble UI to pop up + $client1->waitForWindow(qr/Mumble/); + $client2->waitForWindow(qr/Mumble/); + $server->sleep(3); # Wait some more for the Mumble UI # cancel client audio configuration $client1->sendKeys("esc");