summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJascha Geerds <jg@ekby.de>2015-05-14 17:45:59 +0200
committerJascha Geerds <jg@ekby.de>2015-05-14 17:46:32 +0200
commit779b65f0193ca0d18b3d815a99cccd5886ef2126 (patch)
treec674dd9bdce9c417c904ccf5c788a9e0559248b9 /nixos
parent8714140e31ccde039dc37ed817920889ef5e8b61 (diff)
downloadnixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar.gz
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar.bz2
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar.lz
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar.xz
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.tar.zst
nixlib-779b65f0193ca0d18b3d815a99cccd5886ef2126.zip
cups: Second attempt to fix our printing tests; add more sleep statements
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/printing.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix
index e8c41140045c..1e3a0057c657 100644
--- a/nixos/tests/printing.nix
+++ b/nixos/tests/printing.nix
@@ -68,6 +68,7 @@ import ./make-test.nix ({pkgs, ... }: {
 
               # Print the file on the client.
               $client->succeed("lp $file");
+              $client->sleep(10);
               $client->succeed("lpq") =~ /active.*root.*$fn/ or die;
 
               # Ensure that a raw PCL file appeared in the server's queue
@@ -75,11 +76,13 @@ import ./make-test.nix ({pkgs, ... }: {
               # course, since there is no actual USB printer attached, the
               # file will stay in the queue forever.
               $server->waitForFile("/var/spool/cups/d00001-001");
+              $server->sleep(10);
               $server->succeed("lpq -a") =~ /$fn/ or die;
 
               # Delete the job on the client.  It should disappear on the
               # server as well.
               $client->succeed("lprm");
+              $client->sleep(10);
               $client->succeed("lpq -a") =~ /no entries/;
               Machine::retry sub {
                 return 1 if $server->succeed("lpq -a") =~ /no entries/;