Skip to content

Commit fa57f3d

Browse files
committed
faraday: add tests
1 parent 093aafe commit fa57f3d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/tests.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ let testEnv = rec {
4848

4949
tests.lightning-loop = cfg.lightning-loop.enable;
5050

51+
tests.faraday = cfg.faraday.enable;
52+
5153
tests.electrs = cfg.electrs.enable;
5254

5355
tests.liquidd = cfg.liquidd.enable;
@@ -116,6 +118,7 @@ let testEnv = rec {
116118
services.spark-wallet.enable = true;
117119
services.lnd.enable = true;
118120
services.lightning-loop.enable = true;
121+
services.faraday.enable = true;
119122
services.electrs.enable = true;
120123
services.liquidd.enable = true;
121124
services.btcpayserver.enable = true;

test/tests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ def _():
176176
)
177177

178178

179+
@test("faraday")
180+
def _():
181+
assert_running("faraday")
182+
assert_matches("su operator -c 'frcli --version'", "version")
183+
# Check that lightning-loop fails with the right error, making sure
184+
# lightning-loop can connect to lnd
185+
machine.wait_until_succeeds(log_has_string("faraday", "gRPC",))
186+
187+
179188
@test("btcpayserver")
180189
def _():
181190
assert_running("nbxplorer")

0 commit comments

Comments
 (0)