소스 검색

add test for Endpoint of kindJaegerUdp

xiandong 2 년 전
부모
커밋
af19addf47
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      core/trace/config_test.go

+ 4 - 0
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())