summary refs log tree commit diff
path: root/nixos/tests/etcd.nix
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2015-09-06 14:42:11 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2015-09-06 14:44:13 +0200
commita79d732243376652d96187a8aa8ec055c5a59589 (patch)
tree17a9bc81b0c285a932b7fe9d05395fef3a5e2359 /nixos/tests/etcd.nix
parentfc29fe1d6368e83dc5d1e43b1014f1b9960947c6 (diff)
downloadnixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar.gz
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar.bz2
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar.lz
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar.xz
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.tar.zst
nixpkgs-a79d732243376652d96187a8aa8ec055c5a59589.zip
etcd service: fix tests
Diffstat (limited to 'nixos/tests/etcd.nix')
-rw-r--r--nixos/tests/etcd.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/etcd.nix b/nixos/tests/etcd.nix
index 8a4e7fffce0..bac4ec6a918 100644
--- a/nixos/tests/etcd.nix
+++ b/nixos/tests/etcd.nix
@@ -82,7 +82,7 @@ import ./make-test.nix ({ pkgs, ... } : {
     subtest "single node", sub {
       $simple->start();
       $simple->waitForUnit("etcd.service");
-      $simple->succeed("etcdctl set /foo/bar 'Hello world'");
+      $simple->waitUntilSucceeds("etcdctl set /foo/bar 'Hello world'");
       $simple->waitUntilSucceeds("etcdctl get /foo/bar | grep 'Hello world'");
     };
 
@@ -91,7 +91,7 @@ import ./make-test.nix ({ pkgs, ... } : {
       $node2->start();
       $node1->waitForUnit("etcd.service");
       $node2->waitForUnit("etcd.service");
-      $node1->succeed("etcdctl set /foo/bar 'Hello world'");
+      $node1->waitUntilSucceeds("etcdctl set /foo/bar 'Hello world'");
       $node2->waitUntilSucceeds("etcdctl get /foo/bar | grep 'Hello world'");
       $node1->shutdown();
       $node2->shutdown();
@@ -104,7 +104,7 @@ import ./make-test.nix ({ pkgs, ... } : {
       $discovery2->start();
       $discovery1->waitForUnit("etcd.service");
       $discovery2->waitForUnit("etcd.service");
-      $discovery1->succeed("etcdctl set /foo/bar 'Hello world'");
+      $discovery1->waitUntilSucceeds("etcdctl set /foo/bar 'Hello world'");
       $discovery2->waitUntilSucceeds("etcdctl get /foo/bar | grep 'Hello world'");
     };
   '';