mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
multi: move many t.Fatalf calls to require.NoError
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/clock"
|
||||
"github.com/lightningnetwork/lnd/lntypes"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// invoiceExpiryWatcherTest holds a test fixture and implements checks
|
||||
@@ -72,9 +73,7 @@ func newInvoiceExpiryWatcherTest(t *testing.T, now time.Time,
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("cannot start InvoiceExpiryWatcher: %v", err)
|
||||
}
|
||||
require.NoError(t, err, "cannot start InvoiceExpiryWatcher")
|
||||
|
||||
return test
|
||||
}
|
||||
|
Reference in New Issue
Block a user