mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: move many t.Fatalf calls to require.NoError
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
type managerTest struct {
|
||||
@@ -73,9 +74,7 @@ func TestManager(t *testing.T) {
|
||||
|
||||
func testManager(t *testing.T, test managerTest) {
|
||||
m, err := newManager(test.cfg, testSetDesc)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create feature manager: %v", err)
|
||||
}
|
||||
require.NoError(t, err, "unable to create feature manager")
|
||||
|
||||
sets := []Set{
|
||||
SetInit,
|
||||
|
||||
Reference in New Issue
Block a user