channeldb+wtdb: fix migration function name lint
Rename the ApplyMigrationWithDb function to ApplyMigrationWithDB to make the linter happy.
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -103,7 +103,7 @@ func TestMigrateRevocationLog(t *testing.T) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
migtest.ApplyMigrationWithDb(
|
migtest.ApplyMigrationWithDB(
|
||||||
t,
|
t,
|
||||||
beforeMigration,
|
beforeMigration,
|
||||||
afterMigration,
|
afterMigration,
|
||||||
@@ -560,7 +560,7 @@ func BenchmarkMigration(b *testing.B) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run the migration test.
|
// Run the migration test.
|
||||||
migtest.ApplyMigrationWithDb(
|
migtest.ApplyMigrationWithDB(
|
||||||
b,
|
b,
|
||||||
beforeMigration,
|
beforeMigration,
|
||||||
nil,
|
nil,
|
||||||
|
|||||||
@@ -84,12 +84,12 @@ func ApplyMigration(t *testing.T,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplyMigrationWithDb is a helper test function that encapsulates the general
|
// ApplyMigrationWithDB is a helper test function that encapsulates the general
|
||||||
// steps which are needed to properly check the result of applying migration
|
// steps which are needed to properly check the result of applying migration
|
||||||
// function. This function differs from ApplyMigration as it requires the
|
// function. This function differs from ApplyMigration as it requires the
|
||||||
// supplied migration functions to take a db instance and construct their own
|
// supplied migration functions to take a db instance and construct their own
|
||||||
// database transactions.
|
// database transactions.
|
||||||
func ApplyMigrationWithDb(t testing.TB, beforeMigration, afterMigration,
|
func ApplyMigrationWithDB(t testing.TB, beforeMigration, afterMigration,
|
||||||
migrationFunc func(db kvdb.Backend) error, shouldFail bool) {
|
migrationFunc func(db kvdb.Backend) error, shouldFail bool) {
|
||||||
|
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ func TestMigrateAckedUpdates(t *testing.T) {
|
|||||||
// summary bucket and a new index bucket.
|
// summary bucket and a new index bucket.
|
||||||
after := after(test.shouldFail, test.pre, test.post)
|
after := after(test.shouldFail, test.pre, test.post)
|
||||||
|
|
||||||
migtest.ApplyMigrationWithDb(
|
migtest.ApplyMigrationWithDB(
|
||||||
t, before, after, MigrateAckedUpdates(2),
|
t, before, after, MigrateAckedUpdates(2),
|
||||||
test.shouldFail,
|
test.shouldFail,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user