mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 18:43:42 +02:00
watchtower: replace defer cleanup with t.Cleanup
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
@ -1528,8 +1528,10 @@ func TestClient(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
h := newHarness(t, tc.cfg)
|
||||
defer h.server.Stop()
|
||||
defer h.client.ForceQuit()
|
||||
t.Cleanup(func() {
|
||||
require.NoError(t, h.server.Stop())
|
||||
h.client.ForceQuit()
|
||||
})
|
||||
|
||||
tc.fn(h)
|
||||
})
|
||||
|
Reference in New Issue
Block a user