From ab4e2dafa9e92ec0bc215d3275bed216f862beff Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 5 Jul 2019 17:09:24 +0800 Subject: [PATCH] fix sample result --- pkg/net/trace/sample_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/net/trace/sample_test.go b/pkg/net/trace/sample_test.go index f3543622b..7ccd01b36 100644 --- a/pkg/net/trace/sample_test.go +++ b/pkg/net/trace/sample_test.go @@ -21,8 +21,8 @@ func TestProbabilitySampling(t *testing.T) { count++ } } - if count < 80 || count > 120 { - t.Errorf("expect count between 80~120 get %d", count) + if count < 60 || count > 120 { + t.Errorf("expect count between 60~120 get %d", count) } }) }