@@ -108,7 +108,7 @@ func (s *failoverTestSuite) testFailover(c *C, h Handler, m *Server, s1 *Server,
108
108
err = s2 .StopSlaveIOThread ()
109
109
c .Assert (err , IsNil )
110
110
111
- id = s .checkInsert (c , m , "b" )
111
+ _ = s .checkInsert (c , m , "b" )
112
112
id = s .checkInsert (c , m , "c" )
113
113
114
114
err = h .WaitCatchMaster (s1 , m )
@@ -138,7 +138,7 @@ func (s *failoverTestSuite) testFailover(c *C, h Handler, m *Server, s1 *Server,
138
138
c .Assert (err , IsNil )
139
139
140
140
m , s1 = s1 , m
141
- id = s .checkInsert (c , m , "d" )
141
+ _ = s .checkInsert (c , m , "d" )
142
142
143
143
err = h .WaitCatchMaster (s1 , m )
144
144
c .Assert (err , IsNil )
@@ -153,8 +153,9 @@ func (s *failoverTestSuite) testFailover(c *C, h Handler, m *Server, s1 *Server,
153
153
err = s2 .StopSlaveIOThread ()
154
154
c .Assert (err , IsNil )
155
155
156
- id = s .checkInsert (c , m , "e" )
156
+ _ = s .checkInsert (c , m , "e" )
157
157
err = h .WaitCatchMaster (s1 , m )
158
+ c .Assert (err , IsNil )
158
159
159
160
best , err = h .FindBestSlaves ([]* Server {s1 , s2 })
160
161
c .Assert (err , IsNil )
0 commit comments