Skip to content

Commit

Permalink
Rename TestScheduler* to TestFiber for convention of the test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 23, 2020
1 parent 0b2fc4c commit d48c92a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/fiber/test_enumerator.rb
Expand Up @@ -3,7 +3,7 @@
require 'socket'
require_relative 'scheduler'

class TestSchedulerEnumerator < Test::Unit::TestCase
class TestFiberEnumerator < Test::Unit::TestCase
MESSAGE = "Hello World"

def test_read_characters
Expand Down
2 changes: 1 addition & 1 deletion test/fiber/test_http.rb
Expand Up @@ -7,7 +7,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion test/fiber/test_io.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/fiber/test_mutex.rb
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/fiber/test_fiber.rb → test/fiber/test_scheduler.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/fiber/test_sleep.rb
Expand Up @@ -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
Expand Down

0 comments on commit d48c92a

Please sign in to comment.