From af19addf4780d6fb00c81abc097214af770364ac Mon Sep 17 00:00:00 2001 From: xiandong Date: Fri, 17 Feb 2023 13:37:27 +0800 Subject: [PATCH] add test for Endpoint of kindJaegerUdp --- core/trace/config_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/trace/config_test.go b/core/trace/config_test.go index d3c101ef..b325948f 100644 --- a/core/trace/config_test.go +++ b/core/trace/config_test.go @@ -10,10 +10,14 @@ func TestConfig_getEndpointHost(t *testing.T) { logx.Disable() c1 := Config{ + Name: "not UDP", Endpoint: "http://localhost:14268/api/traces", + Batcher: kindJaegerUdp, } c2 := Config{ + Name: "UDP", Endpoint: "localhost:6831", + Batcher: kindJaegerUdp, } assert.NotEqual(t, "localhost", c1.getEndpointHost()) assert.NotEqual(t, "14268", c1.getEndpointPort())