Get better error if UNIXSocket.socketpair spec fails

This commit is contained in:
Benoit Daloze 2026-01-04 15:39:31 +01:00
parent 29e7973e05
commit e79f8974b5

View File

@ -31,7 +31,7 @@ describe :unixsocket_pair, shared: true do
platform_is :windows do
it "emulates unnamed sockets with a temporary file with a path" do
@s1.path.match?(/\\AppData\\Local\\Temp\\\d+-\d+\.\(\$\)\z/).should be_true
@s1.path.should.match?(/\\AppData\\Local\\Temp\\\d+-\d+\.\(\$\)\z/)
@s1.addr.should == ["AF_UNIX", @s1.path]
@s2.peeraddr.should == ["AF_UNIX", @s1.path]
end