Skip to content

Commit a9d19e5

Browse files
Fix test failure
1 parent 5edcb9e commit a9d19e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/logic/inspect.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func (this *Inspector) InitDBConnections() (err error) {
5151
if this.db, _, err = mysql.GetDB(this.migrationContext.Uuid, inspectorUri); err != nil {
5252
return err
5353
}
54+
if err := this.validateConnection(); err != nil {
55+
return err
56+
}
5457
if this.migrationContext.InspectorServerInfo, err = mysql.GetServerInfo(this.db); err != nil {
5558
return err
5659
}
@@ -60,9 +63,6 @@ func (this *Inspector) InitDBConnections() (err error) {
6063
return err
6164
}
6265

63-
if err := this.validateConnection(); err != nil {
64-
return err
65-
}
6666
if !this.migrationContext.AliyunRDS && !this.migrationContext.GoogleCloudPlatform && !this.migrationContext.AzureMySQL {
6767
if impliedKey, err := mysql.GetInstanceKey(this.db); err != nil {
6868
return err

0 commit comments

Comments
 (0)