@@ -783,7 +783,6 @@ func TestHandlerKillQuery(t *testing.T) {
783783 require .Len (handler .sm .connections , 2 )
784784 require .Len (handler .sm .sessions , 2 )
785785
786-
787786 sleepQuery := "SELECT SLEEP(1000)"
788787 go func () {
789788 err = handler .ComQuery (context .Background (), conn1 , sleepQuery , func (res * sqltypes.Result , more bool ) error {
@@ -806,7 +805,7 @@ func TestHandlerKillQuery(t *testing.T) {
806805 require .NoError (err )
807806
808807 time .Sleep (100 * time .Millisecond )
809- err = handler .ComQuery (context .Background (), conn2 , "KILL QUERY " + sleepQueryID , func (res * sqltypes.Result , more bool ) error {
808+ err = handler .ComQuery (context .Background (), conn2 , "KILL QUERY " + sleepQueryID , func (res * sqltypes.Result , more bool ) error {
810809 return nil
811810 })
812811 require .NoError (err )
@@ -817,7 +816,7 @@ func TestHandlerKillQuery(t *testing.T) {
817816 // 2, , , test, Query, 0, running, SHOW PROCESSLIST
818817 require .Equal (2 , len (res .Rows ))
819818 require .Equal ("Sleep" , res .Rows [0 ][4 ].ToString ())
820- require .Equal ("" , res .Rows [0 ][7 ].ToString ())
819+ require .Equal ("" , res .Rows [0 ][7 ].ToString ())
821820 return nil
822821 })
823822 require .NoError (err )
0 commit comments