From 6fa6a777382ce37e6cb3108ec7f544852a6cf7bf Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Tue, 4 Feb 2025 11:45:16 +0900 Subject: [PATCH] ci: fix unstable test Signed-off-by: Daijiro Fukuda --- test/plugin_helper/test_server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)