mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 10:06:51 +01:00
channeldb: add shouldFail param to ApplyMigrationWithDB
Add a shouldFail boolean parameter to the migtest ApplyMigrationWithDB in order to make it easier to test migration failures.
This commit is contained in:
@@ -108,6 +108,7 @@ func TestMigrateRevocationLog(t *testing.T) {
|
||||
beforeMigration,
|
||||
afterMigration,
|
||||
MigrateRevocationLog,
|
||||
false,
|
||||
)
|
||||
})
|
||||
if !success {
|
||||
@@ -569,5 +570,6 @@ func BenchmarkMigration(b *testing.B) {
|
||||
|
||||
return MigrateRevocationLog(db)
|
||||
},
|
||||
false,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user