diff options
author | Yusuke Endoh <[email protected]> | 2024-02-15 16:00:51 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-02-15 19:11:58 +0900 |
commit | 8f2c231642c9f94947b75769d3cc21b1127b2135 (patch) | |
tree | 81e26f9add3eda627f945fb492f791f92dbdb197 /spec/ruby/library | |
parent | 9d1b000bd1bb747bcc49e2d7677fb7c2b31c5a94 (diff) |
ruby-spec: Accept the receiver in backtraces
Diffstat (limited to 'spec/ruby/library')
-rw-r--r-- | spec/ruby/library/socket/tcpserver/accept_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/socket/tcpserver/accept_spec.rb b/spec/ruby/library/socket/tcpserver/accept_spec.rb index eaeb1d53ac..d8892cd5f0 100644 --- a/spec/ruby/library/socket/tcpserver/accept_spec.rb +++ b/spec/ruby/library/socket/tcpserver/accept_spec.rb @@ -69,7 +69,7 @@ describe "TCPServer#accept" do Thread.pass while t.status and t.status != "sleep" # Thread#backtrace uses SIGVTALRM on TruffleRuby and potentially other implementations. # Sending a signal to a thread is not possible with Ruby APIs. - t.backtrace.join("\n").should =~ /in [`']accept'/ + t.backtrace.join("\n").should =~ /in [`'](?:TCPServer#)?accept'/ socket = TCPSocket.new('127.0.0.1', @port) socket.write("OK") |