mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: replace defer cleanup with t.Cleanup
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@ const (
|
||||
// timed out.
|
||||
func TestHtlcOutgoingResolverTimeout(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer timeout(t)()
|
||||
defer timeout()()
|
||||
|
||||
// Setup the resolver with our test resolution.
|
||||
ctx := newOutgoingResolverTestContext(t)
|
||||
@@ -44,7 +44,7 @@ func TestHtlcOutgoingResolverTimeout(t *testing.T) {
|
||||
// is claimed by the remote party.
|
||||
func TestHtlcOutgoingResolverRemoteClaim(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer timeout(t)()
|
||||
defer timeout()()
|
||||
|
||||
// Setup the resolver with our test resolution and start the resolution
|
||||
// process.
|
||||
|
Reference in New Issue
Block a user