From cca30c9c80a4ad766b77f02690a70b8fc5d4ae91 Mon Sep 17 00:00:00 2001 From: FengbinShi Date: Sat, 29 Oct 2022 23:37:46 +0800 Subject: [PATCH] fix lint --- health/health_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/health/health_test.go b/health/health_test.go index 27e511e37..0e5d69f27 100644 --- a/health/health_test.go +++ b/health/health_test.go @@ -33,8 +33,8 @@ func (B) Check(ctx context.Context) (interface{}, error) { func TestNew(t *testing.T) { ctx, cancel := context.WithCancel(context.TODO()) cm := New(ctx) - cm.RegisterChecker(NewChecker("A", A{}, WithInterval(time.Second), WithInterval(time.Second))) - cm.RegisterChecker(NewChecker("B", B{}, WithInterval(time.Second), WithInterval(time.Second))) + cm.RegisterChecker(NewChecker("A", A{}, WithInterval(time.Second), WithTimeout(time.Second))) + cm.RegisterChecker(NewChecker("B", B{}, WithInterval(time.Second), WithTimeout(time.Second))) cm.Start() go func() { w := cm.NewWatcher()