From 6c57c6c34ba542056c6c87d045b6017d00787721 Mon Sep 17 00:00:00 2001 From: csuzhang Date: Wed, 25 Oct 2023 21:09:42 +0800 Subject: [PATCH] bugfix: fix unittest run err --- config/codes/code_type_mapping_test.go | 2 +- sdk/trace/fraction_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/codes/code_type_mapping_test.go b/config/codes/code_type_mapping_test.go index ea5dab6..cfa8ba3 100644 --- a/config/codes/code_type_mapping_test.go +++ b/config/codes/code_type_mapping_test.go @@ -36,7 +36,7 @@ func TestCodeTypeMappingDescription_UnmarshalText(t *testing.T) { { name: "length exceeds maximum length", args: args{ - text: []byte("success|超长字符串超长字符串超长字符串超长字符串"), + text: []byte("success|Length exceeds maximum length"), }, fields: fields{ CodeType: CodeTypeSuccess.String(), diff --git a/sdk/trace/fraction_test.go b/sdk/trace/fraction_test.go index 56c60d7..ec029ba 100644 --- a/sdk/trace/fraction_test.go +++ b/sdk/trace/fraction_test.go @@ -92,7 +92,7 @@ func Test_getSamplerConfig(t *testing.T) { }, }, }, - SamplerServiceAddr: "your.own.gateway.ip:port ", + SamplerServiceAddr: "your.own.gateway.ip:port", SyncInterval: time.Millisecond, }, },