mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
add test for Endpoint of kindJaegerUdp
This commit is contained in:
parent
ebc425b797
commit
af19addf47
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user