diff --git a/internal/proxy/condition.go b/internal/proxy/condition.go index 6cd8157b30..6f121c8b41 100644 --- a/internal/proxy/condition.go +++ b/internal/proxy/condition.go @@ -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 } diff --git a/internal/proxy/condition_test.go b/internal/proxy/condition_test.go index de54de35b9..6fc21366e8 100644 --- a/internal/proxy/condition_test.go +++ b/internal/proxy/condition_test.go @@ -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)