diff --git a/spec/ruby/library/socket/unixsocket/recvfrom_spec.rb b/spec/ruby/library/socket/unixsocket/recvfrom_spec.rb index 3e2eb69885..c0e1cf670b 100644 --- a/spec/ruby/library/socket/unixsocket/recvfrom_spec.rb +++ b/spec/ruby/library/socket/unixsocket/recvfrom_spec.rb @@ -67,7 +67,7 @@ with_feature :unix_socket do describe 'using a UNIX socket constructed using UNIXSocket.for_fd' do before do @path1 = SocketSpecs.socket_path - @path2 = SocketSpecs.socket_path + '2' + @path2 = SocketSpecs.socket_path.chop + '2' rm_r(@path2) @client_raw = Socket.new(:UNIX, :DGRAM)