Chore: Enable scopelint Go linter (#25896)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-29 17:04:38 +02:00
committed by GitHub
parent a5fb6bddbe
commit d1e6214a4a
28 changed files with 45 additions and 4 deletions
@@ -16,6 +16,7 @@ func TestMigrations(t *testing.T) {
}
for _, testDB := range testDBs {
testDB := testDB
sql := `select count(*) as count from migration_log`
r := struct {
Count int64
@@ -81,6 +81,7 @@ func (mg *Migrator) Start() error {
}
for _, m := range mg.migrations {
m := m
_, exists := logMap[m.Id()]
if exists {
mg.Logger.Debug("Skipping migration: Already executed", "id", m.Id())
+1
View File
@@ -71,6 +71,7 @@ func TestSqlConnectionString(t *testing.T) {
t.Helper()
for _, testCase := range sqlStoreTestCases {
testCase := testCase
Convey(testCase.name, func() {
sqlstore := &SqlStore{}
sqlstore.Cfg = makeSqlStoreTestConfig(testCase.dbType, testCase.dbHost)