@@ -117,8 +117,8 @@ func TestInterpolateParamsUint64(t *testing.T) {
117
117
118
118
func TestCheckNamedValue (t * testing.T ) {
119
119
value := driver.NamedValue {Value : ^ uint64 (0 )}
120
- x := & mysqlConn {}
121
- err := x .CheckNamedValue (& value )
120
+ mc := & mysqlConn {}
121
+ err := mc .CheckNamedValue (& value )
122
122
123
123
if err != nil {
124
124
t .Fatal ("uint64 high-bit not convertible" , err )
@@ -159,13 +159,13 @@ func TestCleanCancel(t *testing.T) {
159
159
160
160
func TestPingMarkBadConnection (t * testing.T ) {
161
161
nc := badConnection {err : errors .New ("boom" )}
162
- ms := & mysqlConn {
162
+ mc := & mysqlConn {
163
163
netConn : nc ,
164
164
buf : newBuffer (nc ),
165
165
maxAllowedPacket : defaultMaxAllowedPacket ,
166
166
}
167
167
168
- err := ms .Ping (context .Background ())
168
+ err := mc .Ping (context .Background ())
169
169
170
170
if err != driver .ErrBadConn {
171
171
t .Errorf ("expected driver.ErrBadConn, got %#v" , err )
@@ -174,15 +174,15 @@ func TestPingMarkBadConnection(t *testing.T) {
174
174
175
175
func TestPingErrInvalidConn (t * testing.T ) {
176
176
nc := badConnection {err : errors .New ("failed to write" ), n : 10 }
177
- ms := & mysqlConn {
177
+ mc := & mysqlConn {
178
178
netConn : nc ,
179
179
buf : newBuffer (nc ),
180
180
maxAllowedPacket : defaultMaxAllowedPacket ,
181
181
closech : make (chan struct {}),
182
182
cfg : NewConfig (),
183
183
}
184
184
185
- err := ms .Ping (context .Background ())
185
+ err := mc .Ping (context .Background ())
186
186
187
187
if err != ErrInvalidConn {
188
188
t .Errorf ("expected ErrInvalidConn, got %#v" , err )
0 commit comments