summaryrefslogtreecommitdiff
path: root/test/fiber/test_enumerator.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-07-16 15:19:47 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2020-07-20 13:20:58 +1200
commite6e9cef06e9023a80991518297d9f2c0c12488ce (patch)
treea9226cb928c7d2600dcbbb1bbdecbbce0eb277f9 /test/fiber/test_enumerator.rb
parenta3ac1bf450d2aa0c6b0b34fee417992b4352ff2c (diff)
Improve consistency of tests.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3323
Diffstat (limited to 'test/fiber/test_enumerator.rb')
-rw-r--r--test/fiber/test_enumerator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fiber/test_enumerator.rb b/test/fiber/test_enumerator.rb
index d332726dc3..f88657cdc4 100644
--- a/test/fiber/test_enumerator.rb
+++ b/test/fiber/test_enumerator.rb
@@ -1,19 +1,19 @@
# frozen_string_literal: true
require 'test/unit'
-require 'socket'
require_relative 'scheduler'
class TestFiberEnumerator < Test::Unit::TestCase
MESSAGE = "Hello World"
def test_read_characters
- skip unless defined?(UNIXSocket)
+ skip "UNIXSocket is not defined!" unless defined?(UNIXSocket)
i, o = UNIXSocket.pair
+
unless i.nonblock? && o.nonblock?
i.close
o.close
- skip
+ skip "I/O is not non-blocking!"
end
message = String.new