multi: rename chan DB Open method to OpenForTesting
This commit is contained in:
24 files changed
+101
-331
No files matched your search
@@ -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