mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-11 14:48:14 +01:00
multi: move many t.Fatalf calls to require.NoError
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/lightningnetwork/lnd/input"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -155,9 +156,7 @@ func TestValidate(t *testing.T) {
|
||||
|
||||
chanSize := int64(1000000)
|
||||
channelCtx, err := newChannelTestCtx(chanSize)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to make channel context: %v", err)
|
||||
}
|
||||
require.NoError(t, err, "unable to make channel context")
|
||||
|
||||
testCases := []struct {
|
||||
// expectedErr is the error we expect, this should be nil if
|
||||
|
||||
Reference in New Issue
Block a user