@@ -167,27 +167,27 @@ func TestWatch(t *testing.T) {
167
167
}
168
168
wo .Events () <- info
169
169
}
170
- wo .Errors () <- & probe.Error {Cause : fmt .Errorf ("error on Watch " )}
170
+ wo .Errors () <- & probe.Error {Cause : fmt .Errorf ("error on watch " )}
171
171
}(wo )
172
172
return wo , nil
173
173
}
174
174
connWriteMessageMock = func (messageType int , data []byte ) error {
175
175
return nil
176
176
}
177
177
if err := startWatch (ctx , mockWSConn , client , testOptions ); assert .Error (err ) {
178
- assert .Equal ("error on Watch " , err .Error ())
178
+ assert .Equal ("error on watch " , err .Error ())
179
179
}
180
180
181
181
// Test-4: error happens on Watch, watch should stop
182
182
// and error shall be returned.
183
183
mcWatchMock = func (ctx context.Context , params mc.WatchOptions ) (* mc.WatchObject , * probe.Error ) {
184
- return nil , & probe.Error {Cause : fmt .Errorf ("error on Watch " )}
184
+ return nil , & probe.Error {Cause : fmt .Errorf ("error on watch " )}
185
185
}
186
186
if err := startWatch (ctx , mockWSConn , client , testOptions ); assert .Error (err ) {
187
- assert .Equal ("error on Watch " , err .Error ())
187
+ assert .Equal ("error on watch " , err .Error ())
188
188
}
189
189
190
- // Test-5: return nil on error on Watch
190
+ // Test-5: return nil on error on watch
191
191
mcWatchMock = func (ctx context.Context , params mc.WatchOptions ) (* mc.WatchObject , * probe.Error ) {
192
192
wo := & mc.WatchObject {
193
193
EventInfoChan : make (chan []mc.EventInfo ),
0 commit comments