From 9c61850621b0abf976ba78ba09f52f5e475e9fd9 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 4 Nov 2022 11:51:44 +0100 Subject: [PATCH] clightning-replication: switch system before waiting for server sshd This is primarily a cosmetic change. - Increases code clarity because all system test blocks now start with `switch_to_system` - Optimizes dependency ordering because `switch_to_system` has no dependency on the server sshd --- test/clightning-replication.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/clightning-replication.nix b/test/clightning-replication.nix index 70d8102..4ee08b5 100644 --- a/test/clightning-replication.nix +++ b/test/clightning-replication.nix @@ -128,8 +128,8 @@ makeTestVM { # A gocryptfs has been created client.succeed("ls /var/backup/clightning/lightningd-db/gocryptfs.conf") - server.wait_for_unit("sshd.service") switch_to_system("replicationRemote") + server.wait_for_unit("sshd.service") with subtest("remote replication"): replica_db = "/var/cache/clightning-replication/sshfs/lightningd.sqlite3" client.succeed(f"runuser -u clightning -- ls {replica_db}")