summary refs log tree commit diff
path: root/nixos/tests/docker-tools.nix
diff options
context:
space:
mode:
authorMilan <me@pbb.lc>2021-01-15 03:38:15 +0100
committerGitHub <noreply@github.com>2021-01-15 03:38:15 +0100
commitf634c149e47982845ec23de7ebe94efd7744e47c (patch)
tree00517bad1a23470648a5a1a91dd76ed51a613cbf /nixos/tests/docker-tools.nix
parent4171cd53d699c7adc7548d0062d7766d93dc3d63 (diff)
downloadnixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar.gz
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar.bz2
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar.lz
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar.xz
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.tar.zst
nixpkgs-f634c149e47982845ec23de7ebe94efd7744e47c.zip
nixos/tests/docker: wait for docker service (#109418)
Previously the Docker daemon was started by systemd socket activation.
Thus, the Docker test waited for the sockets.target unit.
But when the docker module was changed to start the Docker daemon at
boot instead of by socket activation, the test was left untouched.
With the Docker 20.10 update this lead to a timing issue, where the
docker command is run before the Docker daemon has started and hangs.

Fixes #109416
Diffstat (limited to 'nixos/tests/docker-tools.nix')
-rw-r--r--nixos/tests/docker-tools.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix
index 6638ec4927c..e2bd9ddf647 100644
--- a/nixos/tests/docker-tools.nix
+++ b/nixos/tests/docker-tools.nix
@@ -18,7 +18,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
   testScript = with pkgs.dockerTools; ''
     unix_time_second1 = "1970-01-01T00:00:01Z"
 
-    docker.wait_for_unit("sockets.target")
+    docker.wait_for_unit("docker.service")
 
     with subtest("Ensure Docker images use a stable date by default"):
         docker.succeed(