test: extract test 'joinmarket-yieldgenerator'

Needed for regtest scenario.
This commit is contained in:
Erik Arvstedt 2020-10-16 17:43:17 +02:00
parent 06b2ec5b02
commit eb42fc8e06
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 5 additions and 0 deletions

View File

@ -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 = ''

View File

@ -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",)
)