Skip to content

Commit 71a1948

Browse files
committed
Fix formatting
1 parent 9057689 commit 71a1948

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

driver_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ func TestEmptyPassword(t *testing.T) {
20742074
if !strings.HasPrefix(err.Error(), "Error 1045") {
20752075
t.Fatal(err.Error())
20762076
}
2077-
}
2077+
}
20782078
}
20792079

20802080
func TestConnectAttrs(t *testing.T) {
@@ -2089,16 +2089,16 @@ func TestConnectAttrs(t *testing.T) {
20892089
defer db.Close()
20902090
dbt := &DBTest{t, db}
20912091

2092-
// performance_schema seems to be updated with a delay in some conditions, so first see if we are in list:
2093-
rows := dbt.mustQuery("SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST where ID=CONNECTION_ID()")
2094-
if rows.Next() {
2095-
} else {
2096-
dbt.Error("no data in processlist")
2097-
}
2092+
// performance_schema seems to be updated with a delay in some conditions, so first see if we are in list:
2093+
rows := dbt.mustQuery("SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST where ID=CONNECTION_ID()")
2094+
if rows.Next() {
2095+
} else {
2096+
dbt.Error("no data in processlist")
2097+
}
20982098

20992099
rows, err = dbt.db.Query("select attr_value from performance_schema.session_account_connect_attrs where processlist_id=CONNECTION_ID() and attr_name='program_name'")
21002100
if err != nil {
2101-
fmt.Println(err)
2101+
fmt.Println(err)
21022102
dbt.Skip("server probably does not support performance_schema.session_account_connect_attrs")
21032103
}
21042104

0 commit comments

Comments
 (0)