]> git.scottworley.com Git - syncthing-autoregister/commitdiff
Verify b's device ID gets set also
authorScott Worley <scottworley@scottworley.com>
Mon, 27 Jul 2020 23:25:34 +0000 (16:25 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 27 Jul 2020 23:25:34 +0000 (16:25 -0700)
This is racy.  :(

tests/automatic-enrollment.nix

index 6520c9f35e5067a9e76fb6b166ccb735c52e8218..951a4153e000be6bb453522fab7f4bcde415d1f4 100644 (file)
@@ -90,5 +90,8 @@ import <nixpkgs/nixos/tests/make-test-python.nix> ({ pkgs, lib, ... }:
       putDeviceFile(b)
       setConfig(b, configurationWithDeviceIDs)
       verifyDeviceIDSet(b, "a")
+      b.wait_for_unit("syncthing-autoregister.service")
+      verifyDeviceIDSet(b, "a")
+      verifyDeviceIDSet(b, "b")
     '';
   })