From 1d5d76e472df2f4d24f153f0cd381d7b7d579f91 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 27 Jul 2020 16:25:34 -0700 Subject: [PATCH] Verify b's device ID gets set also This is racy. :( --- tests/automatic-enrollment.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/automatic-enrollment.nix b/tests/automatic-enrollment.nix index 6520c9f..951a415 100644 --- a/tests/automatic-enrollment.nix +++ b/tests/automatic-enrollment.nix @@ -90,5 +90,8 @@ import ({ pkgs, lib, ... }: putDeviceFile(b) setConfig(b, configurationWithDeviceIDs) verifyDeviceIDSet(b, "a") + b.wait_for_unit("syncthing-autoregister.service") + verifyDeviceIDSet(b, "a") + verifyDeviceIDSet(b, "b") ''; }) -- 2.44.1