mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
itest: fix testRequestLoggerDisable node cleanup
The test node variable was reassigned in a later step. This broke the deferred cleanup closure and leaked the reqlog-on node process. The leaked process caused random cleanup timeouts under heavy test load. Fixed by copying the node to a local variable before the defer.
This commit is contained in:
parent
f78be1d0bd
commit
02a1b31303
1 changed files with 2 additions and 1 deletions
|
|
@ -308,8 +308,9 @@ func testRequestLoggerDisable(ctx context.Context, net *NetworkHarness,
|
|||
"--autopilot.disable",
|
||||
)
|
||||
require.NoError(t.t, err)
|
||||
reqLogOnNode := node
|
||||
defer func() {
|
||||
_ = net.ShutdownNode(node)
|
||||
_ = net.ShutdownNode(reqLogOnNode)
|
||||
}()
|
||||
|
||||
rawConn, err = connectLitRPC(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue