style: 合入后修 gofmt/govet 与 RegistrationView 类型检查
This commit is contained in:
@@ -28,7 +28,7 @@ func TestFailingMigrationReusesBackup(t *testing.T) {
|
||||
name: "9999_fail.sql",
|
||||
body: "THIS IS NOT VALID SQL",
|
||||
}}
|
||||
if err := applyPending(w, dir, true, pending); err == nil {
|
||||
if applyErr := applyPending(w, dir, true, pending); applyErr == nil {
|
||||
t.Fatal("expected first failing migration to error")
|
||||
}
|
||||
backupDir := filepath.Join(dir, "backup")
|
||||
@@ -40,7 +40,7 @@ func TestFailingMigrationReusesBackup(t *testing.T) {
|
||||
t.Fatalf("first backups=%v", dirNames(first))
|
||||
}
|
||||
|
||||
if err := applyPending(w, dir, true, pending); err == nil {
|
||||
if applyErr := applyPending(w, dir, true, pending); applyErr == nil {
|
||||
t.Fatal("expected second failing migration to error")
|
||||
}
|
||||
second, err := os.ReadDir(backupDir)
|
||||
|
||||
Reference in New Issue
Block a user