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:
cyberguru1 2026-06-22 03:27:39 -05:00
parent f78be1d0bd
commit 02a1b31303
No known key found for this signature in database
GPG key ID: F0FB5ECF1A8786E6

View file

@ -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(