mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Rename TestScheduler* to TestFiber for convention of the test directory
This commit is contained in:
parent
0b2fc4cf37
commit
d48c92aa04
6 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ require 'test/unit'
|
|||
require 'socket'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerEnumerator < Test::Unit::TestCase
|
||||
class TestFiberEnumerator < Test::Unit::TestCase
|
||||
MESSAGE = "Hello World"
|
||||
|
||||
def test_read_characters
|
||||
|
|
|
@ -7,7 +7,7 @@ require 'openssl'
|
|||
require 'test/unit'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerHTTP < Test::Unit::TestCase
|
||||
class TestFiberHTTP < Test::Unit::TestCase
|
||||
def test_get
|
||||
Thread.new do
|
||||
scheduler = Scheduler.new
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerIO < Test::Unit::TestCase
|
||||
class TestFiberIO < Test::Unit::TestCase
|
||||
MESSAGE = "Hello World"
|
||||
|
||||
def test_read
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerMutex < Test::Unit::TestCase
|
||||
class TestFiberMutex < Test::Unit::TestCase
|
||||
def test_mutex_synchronize
|
||||
mutex = Mutex.new
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerFiber < Test::Unit::TestCase
|
||||
class TestFiberScheduler < Test::Unit::TestCase
|
||||
def test_fiber_without_scheduler
|
||||
# Cannot create fiber without scheduler.
|
||||
assert_raise RuntimeError do
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
require_relative 'scheduler'
|
||||
|
||||
class TestSchedulerSleep < Test::Unit::TestCase
|
||||
class TestFiberSleep < Test::Unit::TestCase
|
||||
ITEMS = [0, 1, 2, 3, 4]
|
||||
|
||||
def test_sleep
|
||||
|
|
Loading…
Add table
Reference in a new issue