diff --git a/test/plugin_helper/test_server.rb b/test/plugin_helper/test_server.rb index 512134bf62..204989e503 100644 --- a/test/plugin_helper/test_server.rb +++ b/test/plugin_helper/test_server.rb @@ -685,12 +685,12 @@ class Dummy < Fluent::Plugin::TestBase received = "" responses = [] - port = unused_port(protocol: :udp) + port = unused_port(protocol: :udp, bind: "::1") @d.server_create_udp(:s, port, bind: "::1", max_bytes: 128) do |data, sock| received << data sock.write "ack\n" end - bind_port = unused_port(protocol: :udp) + bind_port = unused_port(protocol: :udp, bind: "::1") 3.times do begin sock = UDPSocket.new(Socket::AF_INET6)