mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
multi: rename chan DB Open method to OpenForTesting
This commit is contained in:
@@ -625,9 +625,7 @@ func makeCircuitDB(t *testing.T, path string) *channeldb.DB {
|
||||
path = t.TempDir()
|
||||
}
|
||||
|
||||
db, err := channeldb.Open(path)
|
||||
require.NoError(t, err, "unable to open channel db")
|
||||
t.Cleanup(func() { db.Close() })
|
||||
db := channeldb.OpenForTesting(t, path)
|
||||
|
||||
return db
|
||||
}
|
||||
|
Reference in New Issue
Block a user