lightning-loop: add tests

This commit is contained in:
nixbitcoin 2020-07-10 14:09:31 +00:00
parent 491d83a658
commit e9204946d4
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
4 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,7 @@ env:
- PKG=electrs STABLE=1
- PKG=electrs STABLE=0
- PKG=liquid-swap STABLE=1
- PKG=lightning-loop STABLE=0
- PKG=nixops19_09 STABLE=1
script:
- printf '%s (%s)\n' "$NIX_PATH" "$VER"

View File

@ -79,3 +79,13 @@ succeed("systemctl stop nanopos lightning-charge spark-wallet clightning")
succeed("systemctl start lnd")
assert_matches("su operator -c 'lncli getinfo' | jq", '"version"')
assert_no_failure("lnd")
### Test loopd
succeed("systemctl start lightning-loop")
assert_matches("su operator -c 'loop --version'", "version")
# Check that lightning-loop fails with the right error, making sure
# lightning-loop can connect to lnd
machine.wait_until_succeeds(
log_has_string("lightning-loop", "chain notifier RPC isstill in the process of starting")
)

View File

@ -141,3 +141,13 @@ succeed("systemctl stop nanopos lightning-charge spark-wallet clightning")
succeed("systemctl start lnd")
assert_matches("su operator -c 'lncli getinfo' | jq", '"version"')
assert_no_failure("lnd")
### Test loopd
succeed("systemctl start lightning-loop")
assert_matches("su operator -c 'loop --version'", "version")
# Check that lightning-loop fails with the right error, making sure
# lightning-loop can connect to lnd
machine.wait_until_succeeds(
log_has_string("lightning-loop", "chain notifier RPC isstill in the process of starting")
)

View File

@ -34,6 +34,8 @@ import ./make-test.nix rec {
services.lnd.enable = true;
systemd.services.lnd.wantedBy = mkForce [];
services.lightning-loop.enable = true;
systemd.services.lightning-loop.wantedBy = mkForce [];
services.electrs.enable = true;