From eb42fc8e0618188211090ca3875a83cd6cd37b87 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 16 Oct 2020 17:43:17 +0200 Subject: [PATCH] test: extract test 'joinmarket-yieldgenerator' Needed for regtest scenario. --- test/tests.nix | 1 + test/tests.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/test/tests.nix b/test/tests.nix index 7456a90..799328f 100644 --- a/test/tests.nix +++ b/test/tests.nix @@ -52,6 +52,7 @@ let testEnv = rec { environment.systemPackages = mkIfTest "btcpayserver" (with pkgs; [ openssl xxd ]); tests.joinmarket = cfg.joinmarket.enable; + tests.joinmarket-yieldgenerator = cfg.joinmarket.yieldgenerator.enable; services.joinmarket.yieldgenerator = { enable = config.services.joinmarket.enable; customParameters = '' diff --git a/test/tests.py b/test/tests.py index 6d1f2e3..7d0409a 100644 --- a/test/tests.py +++ b/test/tests.py @@ -206,6 +206,10 @@ def _(): machine.wait_until_succeeds( log_has_string("joinmarket", "P2EPDaemonServerProtocolFactory starting on 27184") ) + + +@test("joinmarket-yieldgenerator") +def _(): machine.wait_until_succeeds( log_has_string("joinmarket-yieldgenerator", "Failure to get blockheight",) )