mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-05 02:11:10 +01:00
multi: move many t.Fatalf calls to require.NoError
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// TestStore asserts that the store persists the presented data to disk and is
|
||||
@@ -125,9 +126,7 @@ func testStore(t *testing.T, createStore func() (SweeperStore, error)) {
|
||||
}
|
||||
|
||||
txns, err := store.ListSweeps()
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
require.NoError(t, err, "unexpected error")
|
||||
|
||||
// Create a map containing the sweeps we expect to be returned by list
|
||||
// sweeps.
|
||||
|
||||
Reference in New Issue
Block a user