Skip to content

Commit

Permalink
Restore port to random, use loopback in another test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Shkuro committed Mar 19, 2017
1 parent 8551cbb commit a1083c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/agent/app/processors/thrift_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var (
)

func createProcessor(t *testing.T, mFactory metrics.Factory, tFactory thrift.TProtocolFactory, handler AgentProcessor) (string, Processor) {
transport, err := thriftudp.NewTUDPServerTransport("127.0.0.1:9000")
transport, err := thriftudp.NewTUDPServerTransport("127.0.0.1:0")
require.NoError(t, err)

queueSize := 10
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent/app/servers/tbuffered_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestTBufferedServer(t *testing.T) {
func testTBufferedServer(t *testing.T, queueSize int, testDroppedPackets bool) {
metricsFactory := metrics.NewLocalFactory(0)

transport, err := thriftudp.NewTUDPServerTransport(":0")
transport, err := thriftudp.NewTUDPServerTransport("127.0.0.1:0")
require.NoError(t, err)

maxPacketSize := 65000
Expand Down

0 comments on commit a1083c5

Please sign in to comment.