diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-05-14 22:10:55 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 22:10:55 +1200 |
commit | 0e3b0fcdba70cf96a8e0654eb8f50aacb8024bd4 (patch) | |
tree | 74d381412dfd8ff49dd3039f8aeae09ad9e4e6e3 /spec/ruby | |
parent | 336119dfc5e6baae0a936d6feae780a61975479c (diff) |
Thread scheduler for light weight concurrency.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3032
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/library/socket/basicsocket/read_nonblock_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/socket/basicsocket/write_nonblock_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/socket/basicsocket/read_nonblock_spec.rb b/spec/ruby/library/socket/basicsocket/read_nonblock_spec.rb index b8def7e930..df44a50afa 100644 --- a/spec/ruby/library/socket/basicsocket/read_nonblock_spec.rb +++ b/spec/ruby/library/socket/basicsocket/read_nonblock_spec.rb @@ -24,7 +24,7 @@ describe "BasicSocket#read_nonblock" do platform_is :linux do it 'does not set the IO in nonblock mode' do require 'io/nonblock' - @r.should_not.nonblock? + @r.nonblock = false IO.select([@r], nil, nil, 2) @r.read_nonblock(3).should == "aaa" @r.should_not.nonblock? @@ -34,7 +34,7 @@ describe "BasicSocket#read_nonblock" do platform_is_not :linux, :windows do it 'sets the IO in nonblock mode' do require 'io/nonblock' - @r.should_not.nonblock? + @r.nonblock = false IO.select([@r], nil, nil, 2) @r.read_nonblock(3).should == "aaa" @r.should.nonblock? diff --git a/spec/ruby/library/socket/basicsocket/write_nonblock_spec.rb b/spec/ruby/library/socket/basicsocket/write_nonblock_spec.rb index c385beab24..523e732959 100644 --- a/spec/ruby/library/socket/basicsocket/write_nonblock_spec.rb +++ b/spec/ruby/library/socket/basicsocket/write_nonblock_spec.rb @@ -25,7 +25,7 @@ describe "BasicSocket#write_nonblock" do platform_is :linux do it 'does not set the IO in nonblock mode' do require 'io/nonblock' - @w.should_not.nonblock? + @w.nonblock = false @w.write_nonblock("aaa").should == 3 @w.should_not.nonblock? end @@ -34,7 +34,7 @@ describe "BasicSocket#write_nonblock" do platform_is_not :linux, :windows do it 'sets the IO in nonblock mode' do require 'io/nonblock' - @w.should_not.nonblock? + @w.nonblock = false @w.write_nonblock("aaa").should == 3 @w.should.nonblock? end |