mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 09:53:14 +02:00
sqldb: add helpers to create test DBs migrated up to a select version
This commit is contained in:
@@ -11,3 +11,9 @@ import (
|
||||
func NewTestDB(t *testing.T) *SqliteStore {
|
||||
return NewTestSqliteDB(t)
|
||||
}
|
||||
|
||||
// NewTestDBWithVersion is a helper function that creates an SQLite database
|
||||
// for testing and migrates it to the given version.
|
||||
func NewTestDBWithVersion(t *testing.T, version uint) *SqliteStore {
|
||||
return NewTestSqliteDBWithVersion(t, version)
|
||||
}
|
||||
|
Reference in New Issue
Block a user