mirror of https://github.com/milvus-io/milvus.git
Fix golint warnings for proxy (#11892)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>pull/12294/head
parent
6c07d7c43b
commit
e62e7bb801
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue