Merge pull request #6362 from liviu-ln/fix-forward-interceptor-tests

itest: fix node shutdown in interceptor itests
This commit is contained in:
Oliver Gugger 2022-03-24 10:39:41 +01:00 committed by GitHub
commit e77dd4e2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -55,6 +55,8 @@
party sweeps our anchor party sweeps our anchor
output](https://github.com/lightningnetwork/lnd/pull/6274). output](https://github.com/lightningnetwork/lnd/pull/6274).
* [Fixed node shutdown in forward interceptor itests](https://github.com/lightningnetwork/lnd/pull/6362).
## Misc ## Misc
* [An example systemd service file](https://github.com/lightningnetwork/lnd/pull/6033) * [An example systemd service file](https://github.com/lightningnetwork/lnd/pull/6033)

View file

@ -41,10 +41,10 @@ func testForwardInterceptorDedupHtlc(net *lntest.NetworkHarness, t *harnessTest)
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, alice)
bob := net.NewNode(t.t, "bob", nil) bob := net.NewNode(t.t, "bob", nil)
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, bob)
carol := net.NewNode(t.t, "carol", nil) carol := net.NewNode(t.t, "carol", nil)
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, carol)
tc := newInterceptorTestContext(t, net, alice, bob, carol) tc := newInterceptorTestContext(t, net, alice, bob, carol)
@ -210,10 +210,10 @@ func testForwardInterceptorBasic(net *lntest.NetworkHarness, t *harnessTest) {
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, alice)
bob := net.NewNode(t.t, "bob", nil) bob := net.NewNode(t.t, "bob", nil)
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, bob)
carol := net.NewNode(t.t, "carol", nil) carol := net.NewNode(t.t, "carol", nil)
defer shutdownAndAssert(net, t, alice) defer shutdownAndAssert(net, t, carol)
testContext := newInterceptorTestContext(t, net, alice, bob, carol) testContext := newInterceptorTestContext(t, net, alice, bob, carol)