Skip to content

Commit

Permalink
lightning-loop: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nixbitcoin committed Jul 19, 2020
1 parent b73651a commit 17cd183
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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"
Expand Down
6 changes: 6 additions & 0 deletions test/test-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ def assert_running(unit):
succeed("systemctl start lnd")
assert_matches("su operator -c 'lncli getinfo' | jq", '"version"')
assert_no_failure("lnd")

### Test loopd

succeed("systemctl start loopd")
assert_matches("su operator -c 'loop --version'", "version")
assert_no_failure("loopd")
2 changes: 2 additions & 0 deletions test/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import ./make-test.nix rec {

services.lnd.enable = true;
systemd.services.lnd.wantedBy = mkForce [];
services.lightning-loop.enable = true;
systemd.services.loopd.wantedBy = mkForce [];

services.electrs.enable = true;

Expand Down

0 comments on commit 17cd183

Please sign in to comment.