Skip to content

Commit 5edbaa0

Browse files
committed
Fix formatting
1 parent b2c046d commit 5edbaa0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

driver_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ func TestEmptyPassword(t *testing.T) {
20712071
if !strings.HasPrefix(err.Error(), "Error 1045") {
20722072
t.Fatal(err.Error())
20732073
}
2074-
}
2074+
}
20752075
}
20762076

20772077
func TestConnectAttrs(t *testing.T) {
@@ -2086,16 +2086,16 @@ func TestConnectAttrs(t *testing.T) {
20862086
defer db.Close()
20872087
dbt := &DBTest{t, db}
20882088

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

20962096
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'")
20972097
if err != nil {
2098-
fmt.Println(err)
2098+
fmt.Println(err)
20992099
dbt.Skip("server probably does not support performance_schema.session_account_connect_attrs")
21002100
}
21012101

0 commit comments

Comments
 (0)