Skip to content

Commit

Permalink
Remove stale tests
Browse files Browse the repository at this point in the history
These tests were added at a198bb3,
when these classes were `Struct`s.  Since these classes have been
rewritten, these tests no longer make sense.
  • Loading branch information
nobu committed Mar 10, 2023
1 parent 69465df commit 0a466e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions test/ruby/test_thread_cv.rb
Expand Up @@ -6,12 +6,6 @@ class TestThreadConditionVariable < Test::Unit::TestCase
ConditionVariable = Thread::ConditionVariable
Mutex = Thread::Mutex

def test_initialized
assert_raise(TypeError) {
ConditionVariable.allocate.wait(nil)
}
end

def test_condvar_signal_and_wait
mutex = Thread::Mutex.new
condvar = Thread::ConditionVariable.new
Expand Down
12 changes: 0 additions & 12 deletions test/ruby/test_thread_queue.rb
Expand Up @@ -7,18 +7,6 @@ class TestThreadQueue < Test::Unit::TestCase
Queue = Thread::Queue
SizedQueue = Thread::SizedQueue

def test_queue_initialized
assert_raise(TypeError) {
Queue.allocate.push(nil)
}
end

def test_sized_queue_initialized
assert_raise(TypeError) {
SizedQueue.allocate.push(nil)
}
end

def test_queue
grind(5, 1000, 15, Queue)
end
Expand Down

0 comments on commit 0a466e3

Please sign in to comment.