Fix golint warnings for proxy (#11892)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/12294/head
Cai Yudong 2021-11-29 11:57:17 +08:00 committed by GitHub
parent 6c07d7c43b
commit e62e7bb801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func (tc *TaskCondition) WaitToFinish() error {
for {
select {
case <-tc.ctx.Done():
return errors.New("Proxy TaskCondition context Done")
return errors.New("proxy TaskCondition context Done")
case err := <-tc.done:
return err
}

View File

@ -68,7 +68,7 @@ func TestTaskCondition_WaitToFinish(t *testing.T) {
err := c1.WaitToFinish()
assert.NotEqual(t, nil, err)
}()
c1.Notify(errors.New("TestTaskCondition"))
c1.Notify(errors.New("testTaskCondition"))
wg.Wait()
ctx2, cancel2 := context.WithTimeout(context.Background(), time.Millisecond*100)
@ -106,7 +106,7 @@ func TestTaskCondition_Notify(t *testing.T) {
err := c1.WaitToFinish()
assert.NotEqual(t, nil, err)
}()
c1.Notify(errors.New("TestTaskCondition"))
c1.Notify(errors.New("testTaskCondition"))
wg.Wait()
ctx2, cancel2 := context.WithTimeout(context.Background(), time.Millisecond*100)