зеркало из https://github.com/github/ruby.git
Rename TestScheduler* to TestFiber for convention of the test directory
This commit is contained in:
Родитель
0b2fc4cf37
Коммит
d48c92aa04
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче