[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83350] Re: [Ruby trunk Bug#14013] [PATCH] Webrick 60172 fix

From: Eric Wong <normalperson@...>
Date: 2017-10-18 20:43:37 UTC
List: ruby-core #83350
Greg.mpls@gmail.com wrote:
> Eric wrote:
> >  Also, does test/openssl/test_pair.rb work for you?

Oops, I mean how accept_nonblock worked in that test.  In other
words, can you try this to dump all the outputs?

diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index 55b62321b8..0168164810 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -413,10 +413,13 @@ def test_connect_accept_nonblock_no_exception
       rets
     end
 
+    rets = []
     until th.join(0.01)
       accepted = s2.accept_nonblock(exception: false)
       assert_include([s2, :wait_readable, :wait_writable ], accepted)
+      rets << accepted
     end
+    warn rets.inspect
 
     rets = th.value
     assert_instance_of Array, rets

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next