mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 18:43:42 +02:00
multi: move many t.Fatalf calls to require.NoError
This commit is contained in:
@ -855,9 +855,7 @@ func makeFwdPkgDB(t *testing.T, path string) kvdb.Backend { // nolint:unparam
|
||||
bdb, err := kvdb.Create(
|
||||
kvdb.BoltBackendName, path, true, kvdb.DefaultDBTimeout,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to open boltdb: %v", err)
|
||||
}
|
||||
require.NoError(t, err, "unable to open boltdb")
|
||||
|
||||
return bdb
|
||||
}
|
||||
|
Reference in New Issue
Block a user